]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: vfs_virusfilter: Use SMB_VFS_RENAMEAT() instead of SMB_VFS_RENAME.
authorJeremy Allison <jra@samba.org>
Fri, 9 Aug 2019 23:26:10 +0000 (16:26 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 16 Aug 2019 19:52:34 +0000 (19:52 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_virusfilter_utils.c

index f1a7a9ba6cbe7e1ca417d05ee241ea6cfb4ad8c6..5da87ea4a001b62f5889aceba9db3f58bfe6c1cd 100644 (file)
@@ -52,7 +52,11 @@ int virusfilter_vfs_next_move(
 {
        int result;
 
-       result = SMB_VFS_NEXT_RENAME(vfs_h, smb_fname_src, smb_fname_dst);
+       result = SMB_VFS_NEXT_RENAMEAT(vfs_h,
+                       vfs_h->conn->cwd_fsp,
+                       smb_fname_src,
+                       vfs_h->conn->cwd_fsp,
+                       smb_fname_dst);
        if (result == 0 || errno != EXDEV) {
                return result;
        }