From: Volker Lendecke Date: Sat, 12 Mar 2022 11:47:03 +0000 (+0100) Subject: smbd: Make an if-statement in ReadDirName() a bit more readable X-Git-Tag: tevent-0.12.0~342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d72b532f6c17acc045fcdada71dbbc0adb977a;p=thirdparty%2Fsamba.git smbd: Make an if-statement in ReadDirName() a bit more readable Align to make the () structure more obvious Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Mar 23 17:53:09 UTC 2022 on sn-devel-184 --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 99427827015..65997dd3099 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1603,7 +1603,8 @@ const char *ReadDirName(struct smb_Dir *dir_hnd, long *poffset, /* Cheat to allow . and .. to be the first entries returned. */ if (((*poffset == START_OF_DIRECTORY_OFFSET) || - (*poffset == DOT_DOT_DIRECTORY_OFFSET)) && (dir_hnd->file_number < 2)) + (*poffset == DOT_DOT_DIRECTORY_OFFSET)) && + (dir_hnd->file_number < 2)) { if (dir_hnd->file_number == 0) { n = ".";