From d2e62772d53c3e4bec730a9bad6808f008675cd0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 6 Sep 2019 10:06:23 -0700 Subject: [PATCH] s3: VFS: vfs_virusfilter: Change use of SMB_VFS_NEXT_MKDIR -> SMB_VFS_NEXT_MKDIRAT. Use conn->cwd_fsp as current fsp. No logic change for now. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/modules/vfs_virusfilter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_virusfilter.c b/source3/modules/vfs_virusfilter.c index e05a10af1e7..6519ff4c087 100644 --- a/source3/modules/vfs_virusfilter.c +++ b/source3/modules/vfs_virusfilter.c @@ -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; -- 2.11.4.GIT