From: Volker Lendecke Date: Fri, 24 Jan 2025 10:26:32 +0000 (+0100) Subject: smbd: Remove unused recursive_rmdir() X-Git-Tag: tevent-0.17.0~592 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d83d270cfad5f36559973a0f1ae32a01748791f3;p=thirdparty%2Fsamba.git smbd: Remove unused recursive_rmdir() Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 2f09323c008..bf013e5e5d6 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -1075,23 +1075,6 @@ NTSTATUS recursive_rmdir_fsp(struct files_struct *fsp) return status; } -NTSTATUS recursive_rmdir(TALLOC_CTX *ctx, - connection_struct *conn, - struct smb_filename *smb_dname) -{ - NTSTATUS status; - - SMB_ASSERT(!is_ntfs_stream_smb_fname(smb_dname)); - - status = openat_pathref_fsp(conn->cwd_fsp, smb_dname); - if (!NT_STATUS_IS_OK(status)) { - return status; - } - - status = recursive_rmdir_fsp(smb_dname->fsp); - return status; -} - /**************************************************************************** The internals of the rmdir code - called elsewhere. ****************************************************************************/ diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index d574f5c4685..4cf10ed7271 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -135,9 +135,6 @@ NTSTATUS delete_all_streams(struct files_struct *fsp, struct files_struct *dirfsp, struct smb_filename *fsp_atname); NTSTATUS recursive_rmdir_fsp(struct files_struct *fsp); -NTSTATUS recursive_rmdir(TALLOC_CTX *ctx, - connection_struct *conn, - struct smb_filename *smb_dname); bool has_other_nonposix_opens(struct share_mode_lock *lck, struct files_struct *fsp); bool has_nonposix_opens(struct share_mode_lock *lck);