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>
-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;
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
/*
* We potentially need to delete the per-inode streams directory
int ret;
SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp);
if (flags & AT_REMOVEDIR) {
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,
} else {
ret = streams_depot_unlink_internal(handle,
dirfsp,
+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,
static int streams_depot_renameat(vfs_handle_struct *handle,
files_struct *srcfsp,
const struct smb_filename *smb_fname_src,