diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 15:12:30 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:39 +0000 |
commit | 48ad93aec53e547de5919ec13056c7a4fd5cbf02 (patch) | |
tree | 849b8239b50b8795da1fed9c59a5abc414fd2e99 /source3/modules | |
parent | 881ee37c81c0b94c62c92cd4debf2fe52ad7cd63 (diff) | |
download | samba-48ad93aec53e547de5919ec13056c7a4fd5cbf02.tar.gz |
s3: VFS: vfs_streams_depot: Rename streams_depot_rmdir() to streams_depot_rmdir_internal().
Make rmdir_fn() a wrapper function. This will
allow us to add the dirfsp parameter.
Fix DEBUG statement so it doesn't print the wrong function name.
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 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c index 5be72fc1835..02b0fdf5414 100644 --- a/source3/modules/vfs_streams_depot.c +++ b/source3/modules/vfs_streams_depot.c @@ -740,14 +740,13 @@ static int streams_depot_unlink_internal(vfs_handle_struct *handle, return ret; } -static int streams_depot_rmdir(vfs_handle_struct *handle, +static int streams_depot_rmdir_internal(vfs_handle_struct *handle, const struct smb_filename *smb_fname) { struct smb_filename *smb_fname_base = NULL; int ret = -1; - DEBUG(10, ("streams_depot_rmdir called for %s\n", - smb_fname->base_name)); + DBG_DEBUG("called for %s\n", smb_fname->base_name); /* * We potentially need to delete the per-inode streams directory @@ -821,7 +820,7 @@ static int streams_depot_unlinkat(vfs_handle_struct *handle, int ret; SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); if (flags & AT_REMOVEDIR) { - ret = streams_depot_rmdir(handle, smb_fname); + ret = streams_depot_rmdir_internal(handle, smb_fname); } else { ret = streams_depot_unlink_internal(handle, dirfsp, @@ -831,6 +830,13 @@ static int streams_depot_unlinkat(vfs_handle_struct *handle, return ret; } +static int streams_depot_rmdir(vfs_handle_struct *handle, + const struct smb_filename *smb_fname) +{ + return streams_depot_rmdir_internal(handle, + smb_fname); +} + static int streams_depot_renameat(vfs_handle_struct *handle, files_struct *srcfsp, const struct smb_filename *smb_fname_src, |