From: Ralph Boehme Date: Wed, 1 Apr 2020 13:08:50 +0000 (+0200) Subject: smbd: CHECK_READ_IOCTL macro reformatting X-Git-Tag: ldb-2.2.0~1006 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d56412e28b5f1405f4048938c301a7b8e71ac09;p=thirdparty%2Fsamba.git smbd: CHECK_READ_IOCTL macro reformatting A subsequent commit will replace can_read with something much longer. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 224b64e2372..7a6d30ebc79 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -73,7 +73,9 @@ * ). On Windows servers, this is done by the IO manager, which is unaware of * the "if execute is granted then also grant read" arrangement. */ -#define CHECK_READ_IOCTL(fsp) (((fsp)->fh->fd != -1) && ((fsp)->can_read)) +#define CHECK_READ_IOCTL(fsp) \ + (((fsp)->fh->fd != -1) && \ + ((fsp)->can_read)) #define CHECK_WRITE(fsp) ((fsp)->can_write && ((fsp)->fh->fd != -1))