]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use fdos_mode() in call_trans2open()
authorRalph Boehme <slow@samba.org>
Mon, 19 Oct 2020 18:59:35 +0000 (20:59 +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/trans2.c

index f87d1fe892d9dbe3234ab7f098e84f7f4aa995b3..c290e74eb55b6cee660729b1c9587ae9c863befd 100644 (file)
@@ -1462,7 +1462,7 @@ static void call_trans2open(connection_struct *conn,
        }
 
        size = get_file_size_stat(&smb_fname->st);
-       fattr = dos_mode(conn, smb_fname);
+       fattr = fdos_mode(fsp);
        mtime = convert_timespec_to_time_t(smb_fname->st.st_ex_mtime);
        inode = smb_fname->st.st_ex_ino;
        if (fattr & FILE_ATTRIBUTE_DIRECTORY) {