]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_virusfilter: Change use of SMB_VFS_NEXT_MKDIR -> SMB_VFS_NEXT_MKDIRAT.
authorJeremy Allison <jra@samba.org>
Fri, 6 Sep 2019 17:06:23 +0000 (10:06 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 11 Sep 2019 18:24:30 +0000 (18:24 +0000)
Use conn->cwd_fsp as current fsp.

No logic change for now.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_virusfilter.c

index e05a10af1e76e78d88f06ef1f86aad9e12547857..6519ff4c087747d5b798d420e2718b531d57f933 100644 (file)
@@ -159,13 +159,14 @@ static bool quarantine_create_dir(
                                goto done;
                        }
 
-                       ret = SMB_VFS_NEXT_MKDIR(handle,
+                       ret = SMB_VFS_NEXT_MKDIRAT(handle,
+                                       handle->conn->cwd_fsp,
                                        smb_fname,
                                        config->quarantine_dir_mode);
                        if (ret != 0) {
                                TALLOC_FREE(smb_fname);
 
-                               DBG_WARNING("quarantine: mkdir failed for %s "
+                               DBG_WARNING("quarantine: mkdirat failed for %s "
                                            "with error: %s\n", new_dir,
                                            strerror(errno));
                                status = false;