]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in reply_getatr()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 18:41:18 +0000 (20:41 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:32 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index 7cb4e976fbd064a632b5cc3263a42ec009f56722..832e44861560b596d696be2c9a42b5484d41cce0 100644 (file)
@@ -1386,7 +1386,7 @@ void reply_getatr(struct smb_request *req)
                        goto out;
                }
 
-               mode = dos_mode(conn, smb_fname);
+               mode = fdos_mode(smb_fname->fsp);
                size = smb_fname->st.st_ex_size;
 
                if (ask_sharemode) {