diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/open.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index eff78d4533..34d552620d 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1071,9 +1071,8 @@ bool is_stat_open(uint32 access_mask) FILE_READ_ATTRIBUTES| FILE_WRITE_ATTRIBUTES); - return (access_mask && - ((access_mask & ~stat_open_bits) == 0) && - ((access_mask & stat_open_bits) != 0)); + return (((access_mask & stat_open_bits) != 0) && + ((access_mask & ~stat_open_bits) == 0)); } /**************************************************************************** |