]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: open_directory(), smbd_check_access_rights() -> smbd_check_access_rights_fsp().
authorJeremy Allison <jra@samba.org>
Mon, 7 Jun 2021 22:03:41 +0000 (15:03 -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/open.c

index 5e6e7326ede61a175d4cd3a4e3752934ffdfef01..8978e316fd934c2b72e85bd604dae47ddbe1c13e 100644 (file)
@@ -4652,9 +4652,7 @@ static NTSTATUS open_directory(connection_struct *conn,
        }
 
        if (info == FILE_WAS_OPENED) {
-               status = smbd_check_access_rights(conn,
-                                               conn->cwd_fsp,
-                                               smb_dname,
+               status = smbd_check_access_rights_fsp(fsp,
                                                false,
                                                access_mask);
                if (!NT_STATUS_IS_OK(status)) {