]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make an if-statement in ReadDirName() a bit more readable
authorVolker Lendecke <vl@samba.org>
Sat, 12 Mar 2022 11:47:03 +0000 (12:47 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 23 Mar 2022 17:53:08 +0000 (17:53 +0000)
Align to make the () structure more obvious

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar 23 17:53:09 UTC 2022 on sn-devel-184

source3/smbd/dir.c

index 9942782701543eb9741ba034f8864d8f44ca40a4..65997dd3099c1df7862a493afb091928f73e3841 100644 (file)
@@ -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 = ".";