]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: check_base_file_access(), smbd_check_access_rights() -> smbd_check_access_r...
authorJeremy Allison <jra@samba.org>
Mon, 7 Jun 2021 21:58:39 +0000 (14:58 -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 dcbc2755a687e78dbf3fd0d6a014fb97455fd29c..5e6e7326ede61a175d4cd3a4e3752934ffdfef01 100644 (file)
@@ -471,9 +471,7 @@ static NTSTATUS check_base_file_access(struct connection_struct *conn,
                }
        }
 
-       return smbd_check_access_rights(conn,
-                                       conn->cwd_fsp,
-                                       smb_fname,
+       return smbd_check_access_rights_fsp(smb_fname->fsp,
                                        false,
                                        access_mask);
 }