]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Use OpenDir_from_pathref() in rmdir_internals()
authorVolker Lendecke <vl@samba.org>
Wed, 9 Oct 2024 13:49:10 +0000 (15:49 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 18:07:33 +0000 (18:07 +0000)
Make strace look nicer

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/close.c

index 603a4c01e7e38a93a7a85efcbc83f8b60ab2b945..53e2aae1bf3ba6e731d7a941f1bd1b45dd56a653 100644 (file)
@@ -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