]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in smbd_dirptr_8_3_mode_fn()
authorRalph Boehme <slow@samba.org>
Wed, 25 Nov 2020 15:35:11 +0000 (16:35 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dir.c

index 760fc315db4b71edcf4dcf769997eed7c81c1326..ae92fa08161597a99bad7fe073d04e9336758c3d 100644 (file)
@@ -1135,7 +1135,8 @@ static bool smbd_dirptr_8_3_mode_fn(TALLOC_CTX *ctx,
        }
 
        if (get_dosmode) {
-               *_mode = dos_mode(conn, smb_fname);
+               *_mode = fdos_mode(smb_fname->fsp);
+               smb_fname->st = smb_fname->fsp->fsp_name->st;
        }
        return true;
 }