From: Volker Lendecke Date: Wed, 9 Oct 2024 13:49:10 +0000 (+0200) Subject: smbd: Use OpenDir_from_pathref() in rmdir_internals() X-Git-Tag: tdb-1.4.13~524 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88abb775dca6d9afe248b266b0868151e0ffbe31;p=thirdparty%2Fsamba.git smbd: Use OpenDir_from_pathref() in rmdir_internals() Make strace look nicer Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 603a4c01e7e..53e2aae1bf3 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -1183,12 +1183,7 @@ static NTSTATUS rmdir_internals(TALLOC_CTX *ctx, struct files_struct *fsp) * files non-visible to the client. If not, fail the delete. */ - status = OpenDir(talloc_tos(), - conn, - smb_dname, - NULL, - 0, - &dir_hnd); + status = OpenDir_from_pathref(talloc_tos(), fsp, NULL, 0, &dir_hnd); if (!NT_STATUS_IS_OK(status)) { /* * Note, we deliberately squash the error here