s3: VFS: vfs_posix_eadb: Convert streams_depot_rmdir_internal() to call UNLINKAT...
authorJeremy Allison <jra@samba.org>
Fri, 4 Oct 2019 22:16:06 +0000 (15:16 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 10 Oct 2019 06:09:39 +0000 (06:09 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_depot.c

index e0cfac2d9906eca5e0c93ddf180bca4d65bba623..5be72fc1835e1650173b42f95b8521310ba91440 100644 (file)
@@ -796,13 +796,19 @@ static int streams_depot_rmdir(vfs_handle_struct *handle,
                                errno = ENOMEM;
                                return -1;
                        }
-                       SMB_VFS_NEXT_RMDIR(handle, smb_fname_dir);
+                       SMB_VFS_NEXT_UNLINKAT(handle,
+                                       dirfsp,
+                                       smb_fname_dir,
+                                       AT_REMOVEDIR);
                        TALLOC_FREE(smb_fname_dir);
                }
                TALLOC_FREE(dirname);
        }
 
-       ret = SMB_VFS_NEXT_RMDIR(handle, smb_fname_base);
+       ret = SMB_VFS_NEXT_UNLINKAT(handle,
+                               dirfsp,
+                               smb_fname_base,
+                               AT_REMOVEDIR);
        TALLOC_FREE(smb_fname_base);
        return ret;
 }