diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 15:38:45 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:39 +0000 |
commit | 9c5dc89c0b1a3c33840428d04034abe4dcfbbd7b (patch) | |
tree | 35863d1034ac8753c8c814c2d52b78b435c80f84 /source3/modules | |
parent | d9091d8fa96645886e7fb35ac95ed0f5b2f5c72a (diff) | |
download | samba-9c5dc89c0b1a3c33840428d04034abe4dcfbbd7b.tar.gz |
s3: VFS: vfs_streams_depot: Change RMDIR -> UNLINKAT inside stream_dir().
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 7850d7a7691..c48513c2849 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -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()); |