diff options
-rw-r--r-- | source3/smbd/files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index e6141ece13..b8142b0290 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -603,11 +603,11 @@ NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *from, to->share_access = share_access; to->oplock_type = from->oplock_type; to->can_lock = from->can_lock; - to->can_read = (access_mask & FILE_READ_DATA) ? True : False; + to->can_read = ((access_mask & FILE_READ_DATA) != 0); if (!CAN_WRITE(from->conn)) { to->can_write = False; } else { - to->can_write = (access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) ? True : False; + to->can_write = ((access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) != 0); } to->modified = from->modified; to->is_directory = from->is_directory; |