From: Jeremy Allison Date: Fri, 9 Aug 2019 23:27:49 +0000 (-0700) Subject: s3: VFS: vfs_recycle. Use SMB_VFS_RENAMEAT() instead of SMB_VFS_RENAME(). X-Git-Tag: tdb-1.4.2~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d439c2bab4a3b1b8c4f3cee0cfe4110f8ea3f88c;p=thirdparty%2Fsamba.git s3: VFS: vfs_recycle. Use SMB_VFS_RENAMEAT() instead of SMB_VFS_RENAME(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c index e84f0351c87..93f281033f7 100644 --- a/source3/modules/vfs_recycle.c +++ b/source3/modules/vfs_recycle.c @@ -634,7 +634,11 @@ static int recycle_unlink(vfs_handle_struct *handle, DEBUG(10, ("recycle: Moving %s to %s\n", smb_fname_str_dbg(smb_fname), smb_fname_str_dbg(smb_fname_final))); - rc = SMB_VFS_NEXT_RENAME(handle, smb_fname, smb_fname_final); + rc = SMB_VFS_NEXT_RENAMEAT(handle, + handle->conn->cwd_fsp, + smb_fname, + handle->conn->cwd_fsp, + smb_fname_final); if (rc != 0) { DEBUG(3, ("recycle: Move error %d (%s), purging file %s " "(%s)\n", errno, strerror(errno),