未验证 提交 4c9ba192 编写于 作者: D Daniel Pinto 提交者: Konstantin Komarov

fs/ntfs3: Fix hidedotfiles mount option by reversing behaviour

Currently, the hidedotfiles mount option is behaving in the reverse
way of what would be expected: enabling it disables setting the
hidden attribute on files or directories with names starting with a
dot and disabling it enables the setting.

Reverse the behaviour of the hidedotfiles mount option so it matches
what is expected.
Signed-off-by: NDaniel Pinto <danielpinto52@gmail.com>
Signed-off-by: NKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
上级 d683c67c
...@@ -361,7 +361,7 @@ static int ntfs_fs_parse_param(struct fs_context *fc, ...@@ -361,7 +361,7 @@ static int ntfs_fs_parse_param(struct fs_context *fc,
opts->nohidden = result.negated ? 1 : 0; opts->nohidden = result.negated ? 1 : 0;
break; break;
case Opt_hide_dot_files: case Opt_hide_dot_files:
opts->hide_dot_files = result.negated ? 1 : 0; opts->hide_dot_files = result.negated ? 0 : 1;
break; break;
case Opt_windows_names: case Opt_windows_names:
opts->windows_names = result.negated ? 0 : 1; opts->windows_names = result.negated ? 0 : 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册