smbd: CHECK_READ_SMB2 macro reformatting
authorRalph Boehme <slow@samba.org>
Wed, 1 Apr 2020 13:08:50 +0000 (15:08 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 Apr 2020 19:05:42 +0000 (19:05 +0000)
A subsequent commit will replace can_read with something much longer.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/smb_macros.h

index 2e28a8c30d52768b0c3c9f04354f4147107517f7..224b64e2372dd6b4c3db75408ef9379843ed1624 100644 (file)
@@ -64,7 +64,8 @@
  */
 #define CHECK_READ_SMB2(fsp) \
        (((fsp)->fh->fd != -1) && \
-        ((fsp)->can_read || (fsp->access_mask & FILE_EXECUTE)))
+        ((fsp)->can_read || \
+         (fsp->access_mask & FILE_EXECUTE)))
 
 /* An IOCTL readability check (validating read access
  * when the IOCTL code requires it)