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 <ebiggers3@gmail.com>pull/2/head
parent
f86c4403ed
commit
d4dfa18f7d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue