]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in reply_open()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 18:41:43 +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 832e44861560b596d696be2c9a42b5484d41cce0..43b9b8905bd07991408d8bbf0ef3b124e4eeeb5b 100644 (file)
@@ -2273,7 +2273,7 @@ void reply_open(struct smb_request *req)
        smb_fname = fsp->fsp_name;
 
        size = smb_fname->st.st_ex_size;
-       fattr = dos_mode(conn, smb_fname);
+       fattr = fdos_mode(fsp);
 
        mtime = convert_timespec_to_time_t(smb_fname->st.st_ex_mtime);