From: Jeremy Allison Date: Fri, 6 Sep 2019 17:06:23 +0000 (-0700) Subject: s3: VFS: vfs_virusfilter: Change use of SMB_VFS_NEXT_MKDIR -> SMB_VFS_NEXT_MKDIRAT. X-Git-Tag: talloc-2.3.1~887 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e62772d53c3e4bec730a9bad6808f008675cd0;p=thirdparty%2Fsamba.git 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 --- 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;