diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 15:04:02 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:39 +0000 |
commit | 4e028aeaff99b4fee71925bca8d3eae0a4841947 (patch) | |
tree | 560d6739416958861123ff180da71dfc0552729f /source3/modules | |
parent | 0df3371e7a483fd286e96f95c8a4c227e2b686ab (diff) | |
download | samba-4e028aeaff99b4fee71925bca8d3eae0a4841947.tar.gz |
s3: VFS: vfs_posix_eadb: Rename posix_eadb_rmdir() to posix_eadb_rmdir_internal().
Make rmdir_fn() a wrapper function. This will
allow us to add the dirfsp parameter.
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_posix_eadb.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source3/modules/vfs_posix_eadb.c b/source3/modules/vfs_posix_eadb.c index db7471c19d2..eea1129a8e8 100644 --- a/source3/modules/vfs_posix_eadb.c +++ b/source3/modules/vfs_posix_eadb.c @@ -358,7 +358,7 @@ out: /* * On rmdir we need to delete the tdb record */ -static int posix_eadb_rmdir(vfs_handle_struct *handle, +static int posix_eadb_rmdir_internal(vfs_handle_struct *handle, const struct smb_filename *smb_fname) { NTSTATUS status; @@ -399,7 +399,7 @@ static int posix_eadb_unlinkat(vfs_handle_struct *handle, SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); if (flags & AT_REMOVEDIR) { - ret = posix_eadb_rmdir(handle, smb_fname); + ret = posix_eadb_rmdir_internal(handle, smb_fname); } else { ret = posix_eadb_unlink_internal(handle, dirfsp, @@ -410,6 +410,16 @@ static int posix_eadb_unlinkat(vfs_handle_struct *handle, } /* + * On rmdir we need to delete the tdb record + */ +static int posix_eadb_rmdir(vfs_handle_struct *handle, + const struct smb_filename *smb_fname) +{ + return posix_eadb_rmdir_internal(handle, + smb_fname); +} + +/* * Destructor for the VFS private data */ |