From: Jeremy Allison Date: Fri, 4 Oct 2019 22:06:23 +0000 (-0700) Subject: s3: VFS: vfs_posix_eadb: Add a dirfsp parameter to posix_eadb_rmdir_internal(). X-Git-Tag: talloc-2.3.1~426 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3221bab80feff7f9e3af05c08f13ecb3a0cf8cde;p=thirdparty%2Fsamba.git s3: VFS: vfs_posix_eadb: Add a dirfsp parameter to posix_eadb_rmdir_internal(). Not yet used. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_posix_eadb.c b/source3/modules/vfs_posix_eadb.c index eea1129a8e8..665469e2ed9 100644 --- a/source3/modules/vfs_posix_eadb.c +++ b/source3/modules/vfs_posix_eadb.c @@ -359,6 +359,7 @@ out: * On rmdir we need to delete the tdb record */ static int posix_eadb_rmdir_internal(vfs_handle_struct *handle, + struct files_struct *dirfsp, const struct smb_filename *smb_fname) { NTSTATUS status; @@ -399,7 +400,9 @@ static int posix_eadb_unlinkat(vfs_handle_struct *handle, SMB_ASSERT(dirfsp == dirfsp->conn->cwd_fsp); if (flags & AT_REMOVEDIR) { - ret = posix_eadb_rmdir_internal(handle, smb_fname); + ret = posix_eadb_rmdir_internal(handle, + dirfsp, + smb_fname); } else { ret = posix_eadb_unlink_internal(handle, dirfsp, @@ -416,6 +419,7 @@ static int posix_eadb_rmdir(vfs_handle_struct *handle, const struct smb_filename *smb_fname) { return posix_eadb_rmdir_internal(handle, + handle->conn->cwd_fsp, smb_fname); }