]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: open_file_ntcreate(). Start passing a real parent dirfsp to smbd_calculate_...
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 19:00:56 +0000 (12:00 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:31 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/open.c

index d001db4603b797accd38de26519b7188bf1aac31..856a2ea1344f87d313022dc385a565704b67edb1 100644 (file)
@@ -3640,7 +3640,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                }
        }
 
-       status = smbd_calculate_access_mask_fsp(conn->cwd_fsp,
+       status = smbd_calculate_access_mask_fsp(parent_dir_fname->fsp,
                                                smb_fname->fsp,
                                                false,
                                                access_mask,