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

index 6f43d4f55b628936377930c349ff32d82dad5c8e..e1ca65f2748ac8901bc48101e8acfc3ecdcea30f 100644 (file)
@@ -471,7 +471,7 @@ static NTSTATUS check_base_file_access(struct connection_struct *conn,
                if (!CAN_WRITE(conn)) {
                        return NT_STATUS_ACCESS_DENIED;
                }
-               dosattrs = dos_mode(conn, smb_fname);
+               dosattrs = fdos_mode(smb_fname->fsp);
                if (IS_DOS_READONLY(dosattrs)) {
                        return NT_STATUS_ACCESS_DENIED;
                }