]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: call_nt_transact_create(), can_write_to_file() -> can_write_to_fsp().
authorJeremy Allison <jra@samba.org>
Wed, 2 Jun 2021 18:40:21 +0000 (11:40 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/nttrans.c

index 1c7cc1518f57efc139870150a3627d86a170834c..9f4a53926cca6e08c52ed4382ced7aa720c01f86 100644 (file)
@@ -1502,9 +1502,7 @@ static void call_nt_transact_create(connection_struct *conn,
                p += 25;
                if (fsp->fsp_flags.is_directory ||
                    fsp->fsp_flags.can_write ||
-                   can_write_to_file(conn,
-                               conn->cwd_fsp,
-                               smb_fname))
+                   can_write_to_fsp(fsp))
                {
                        perms = FILE_GENERIC_ALL;
                } else {