]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: open_file(), smbd_check_access_rights() -> smbd_check_access_rights_fsp().
authorJeremy Allison <jra@samba.org>
Mon, 7 Jun 2021 22:08:06 +0000 (15:08 -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 8978e316fd934c2b72e85bd604dae47ddbe1c13e..985eabd9ffd15c541dad88a71aae62de093e981e 100644 (file)
@@ -1397,9 +1397,7 @@ static NTSTATUS open_file(files_struct *fsp,
                if (!fsp->base_fsp) {
                        /* Only do this check on non-stream open. */
                        if (file_existed) {
-                               status = smbd_check_access_rights(conn,
-                                               conn->cwd_fsp,
-                                               smb_fname,
+                               status = smbd_check_access_rights_fsp(fsp,
                                                false,
                                                access_mask);