]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use get_dosmode in smbd_dirptr_8_3_mode_fn()
authorRalph Boehme <slow@samba.org>
Wed, 25 Nov 2020 12:21:25 +0000 (13:21 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Caller currently always passes true, but this will change soonish with a change
to smbd_dirptr_get_entry().

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c

index 181a59aa61e35a4a8797fb745aea3e6427559a89..b5fdb14da03bba66333a43389ec8dafd6d7cc5c7 100644 (file)
@@ -1022,7 +1022,9 @@ static bool smbd_dirptr_8_3_mode_fn(TALLOC_CTX *ctx,
                }
        }
 
-       *_mode = dos_mode(conn, smb_fname);
+       if (get_dosmode) {
+               *_mode = dos_mode(conn, smb_fname);
+       }
        return true;
 }