]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: open_directory(). Pass down the real parent_dir->fsp to smbd_check_access_r...
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 19:28:24 +0000 (12:28 -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 21dda0f596078759ed6d31d730c61e2c9c492bd0..101757666fe5190dd21b3c8d797f34ff04039f3c 100644 (file)
@@ -4622,7 +4622,7 @@ static NTSTATUS open_directory(connection_struct *conn,
        }
 
        if (info == FILE_WAS_OPENED) {
-               status = smbd_check_access_rights_fsp(fsp->conn->cwd_fsp,
+               status = smbd_check_access_rights_fsp(parent_dir_fname->fsp,
                                                fsp,
                                                false,
                                                access_mask);