From d4dfa18f7d8f8e77faa0716fae5f7c0ae8c038b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Thu, 28 Jul 2016 16:30:05 +0200 Subject: [PATCH] Corrected code with misleading indentation GCC 6 reports a warning in ntfs_allowed_dir_access() because the code has misleading indentation. Fix by adding braces. There is no actual change in behavior because of the '(allowed == 2)' condition. Signed-off-by: Eric Biggers --- src/ntfs-3g.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 2578fef0..702d6765 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -332,6 +332,7 @@ static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx, allowed = 1; else #endif + { if (dir_ni) allowed = ntfs_real_allowed_access(scx, dir_ni, accesstype); @@ -374,6 +375,7 @@ static int ntfs_allowed_dir_access(struct SECURITY_CONTEXT *scx, ntfs_inode_close(ni2); } } + } return (allowed); }