summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2019-10-04 15:40:34 -0700
committerRalph Boehme <slow@samba.org>2019-10-10 06:09:40 +0000
commitc6235f297e7da35411c0effa2394bdc679e433c9 (patch)
treecf535ef46ae5d913bfdafed0ae41c4c2cf7ee5cb /source3/modules
parent9c5dc89c0b1a3c33840428d04034abe4dcfbbd7b (diff)
downloadsamba-c6235f297e7da35411c0effa2394bdc679e433c9.tar.gz
s3: VFS: vfs_streams_depot: Change RMDIR -> UNLINKAT inside streams_depot_unlink_internal().
No logic change. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_streams_depot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c
index c48513c2849..0e2bfa9684d 100644
--- a/source3/modules/vfs_streams_depot.c
+++ b/source3/modules/vfs_streams_depot.c
@@ -729,7 +729,10 @@ static int streams_depot_unlink_internal(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);