s3: VFS: vfs_streams_depot: Change RMDIR -> UNLINKAT inside stream_dir().
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 22:38:45 +0000 (15:38 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:39 +0000 (06:09 +0000)
No logic change.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_depot.c

index 7850d7a76917d8cd755e64ba2f8a02c854ddc0d5..c48513c2849de3e66ac27553caeffdac8c029bbf 100644 (file)
@@ -250,7 +250,10 @@ static char *stream_dir(vfs_handle_struct *handle,
                              smb_fname_hash->base_name));
                        recursive_rmdir(talloc_tos(), handle->conn,
                                        smb_fname_hash);
-                       SMB_VFS_NEXT_RMDIR(handle, smb_fname_hash);
+                       SMB_VFS_NEXT_UNLINKAT(handle,
+                                       handle->conn->cwd_fsp,
+                                       smb_fname_hash,
+                                       AT_REMOVEDIR);
                } else {
                        newname = talloc_asprintf(talloc_tos(), "lost-%lu",
                                                  random());