From: Volker Lendecke Date: Tue, 14 Nov 2023 09:53:30 +0000 (+0100) Subject: smbd: Directly print errno in openat_pathref_fsp_lcomp() X-Git-Tag: talloc-2.4.2~731 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f195df4e65257b8fe1175135fd1217dd9541cbff;p=thirdparty%2Fsamba.git smbd: Directly print errno in openat_pathref_fsp_lcomp() This is where the error came from. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 28a741c8b54..5da90480a67 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -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;