s3: smbd: open_directory(). Start passing a real parent dirfsp to smbd_calculate_acce...
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 19:02:16 +0000 (12:02 -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 856a2ea1344f87d313022dc385a565704b67edb1..321120cdf9cc1b1f5bcadebbacddd7d258aa3476 100644 (file)
@@ -4405,7 +4405,7 @@ static NTSTATUS open_directory(connection_struct *conn,
                 create_disposition,
                 file_attributes);
 
-       status = smbd_calculate_access_mask_fsp(conn->cwd_fsp,
+       status = smbd_calculate_access_mask_fsp(parent_dir_fname->fsp,
                                        smb_dname->fsp,
                                        false,
                                        access_mask,