diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 15:16:06 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:39 +0000 |
commit | 881ee37c81c0b94c62c92cd4debf2fe52ad7cd63 (patch) | |
tree | 78e38b13df90a06cda9ea4cc656be7ffd68567ce /source3/modules | |
parent | a8507856ef1fc005a0fefa6e764663b48ec8ea1b (diff) | |
download | samba-881ee37c81c0b94c62c92cd4debf2fe52ad7cd63.tar.gz |
s3: VFS: vfs_posix_eadb: Convert streams_depot_rmdir_internal() to call UNLINKAT() instead of RMDIR().
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.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index e0cfac2d990..5be72fc1835 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -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; } |