From 2d56412e28b5f1405f4048938c301a7b8e71ac09 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 1 Apr 2020 15:08:50 +0200 Subject: [PATCH] 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 --- source3/include/smb_macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.47.3