diff options
author | Jeremy Allison <jra@samba.org> | 2019-10-04 14:39:30 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2019-10-10 06:09:40 +0000 |
commit | 19a4c5a99334ac38becdf6197e154f98c0455ff6 (patch) | |
tree | 379b9dc41de22e73f0511bf5fb7435203057c5b3 /source3/modules | |
parent | 060eb647f437f4fefb4e511061e48dd62d0c3099 (diff) | |
download | samba-19a4c5a99334ac38becdf6197e154f98c0455ff6.tar.gz |
s3: VFS: vfs_acl_tdb: Remove rmdir_fn(). No longer used.
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_acl_tdb.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/source3/modules/vfs_acl_tdb.c b/source3/modules/vfs_acl_tdb.c index 267e7883e3f..41a65891084 100644 --- a/source3/modules/vfs_acl_tdb.c +++ b/source3/modules/vfs_acl_tdb.c @@ -282,34 +282,6 @@ static int unlinkat_acl_tdb(vfs_handle_struct *handle, return ret; } -/********************************************************************* - On rmdir we need to delete the tdb record (if using tdb). -*********************************************************************/ - -static int rmdir_acl_tdb(vfs_handle_struct *handle, - const struct smb_filename *smb_fname) -{ - - SMB_STRUCT_STAT sbuf; - struct db_context *db = acl_db; - int ret = -1; - - ret = vfs_stat_smb_basename(handle->conn, smb_fname, &sbuf); - if (ret == -1) { - return -1; - } - - ret = rmdir_acl_common(handle, - handle->conn->cwd_fsp, - smb_fname); - if (ret == -1) { - return -1; - } - - acl_tdb_delete(handle, db, &sbuf); - return 0; -} - /******************************************************************* Handle opening the storage tdb if so configured. *******************************************************************/ @@ -501,7 +473,6 @@ static NTSTATUS acl_tdb_fset_nt_acl(vfs_handle_struct *handle, static struct vfs_fn_pointers vfs_acl_tdb_fns = { .connect_fn = connect_acl_tdb, .disconnect_fn = disconnect_acl_tdb, - .rmdir_fn = rmdir_acl_tdb, .unlinkat_fn = unlinkat_acl_tdb, .chmod_fn = chmod_acl_module_common, .fchmod_fn = fchmod_acl_module_common, |