]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: vfs_streams_depot: Change to using SMB_VFS_RENAMEAT() instead of SMB_VFS_REN...
authorJeremy Allison <jra@samba.org>
Fri, 9 Aug 2019 23:29:58 +0000 (16:29 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 16 Aug 2019 19:52:36 +0000 (19:52 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_depot.c

index 2cc430a0949e65dc394a514d4a09a9ebb3d2d10b..419aee99173ce507405d33a689c3bcbc12c056e4 100644 (file)
@@ -274,8 +274,11 @@ static char *stream_dir(vfs_handle_struct *handle,
                                goto fail;
                        }
 
-                       if (SMB_VFS_NEXT_RENAME(handle, smb_fname_hash,
-                                               smb_fname_new) == -1) {
+                       if (SMB_VFS_NEXT_RENAMEAT(handle,
+                                       handle->conn->cwd_fsp,
+                                       smb_fname_hash,
+                                       handle->conn->cwd_fsp,
+                                       smb_fname_new) == -1) {
                                TALLOC_FREE(smb_fname_new);
                                if ((errno == EEXIST) || (errno == ENOTEMPTY)) {
                                        goto again;