]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Directly print errno in openat_pathref_fsp_lcomp()
authorVolker Lendecke <vl@samba.org>
Tue, 14 Nov 2023 09:53:30 +0000 (10:53 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 15 Nov 2023 05:10:35 +0000 (05:10 +0000)
This is where the error came from.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/files.c

index 28a741c8b54d69dc7b533bbb5cf84273201cc996..5da90480a674835f93ec7ea979ab452b53163892 100644 (file)
@@ -1576,7 +1576,7 @@ NTSTATUS openat_pathref_fsp_lcomp(struct files_struct *dirfsp,
                          (fd >= 0) ? "F" : "",
                          dirfsp->fsp_name->base_name,
                          smb_fname_rel->base_name,
-                         nt_errstr(status));
+                         strerror(errno));
                fd_close(fsp);
                file_free(NULL, fsp);
                return status;