1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

If it is a forced DOS error, nt_errstr should say so

This commit is contained in:
Volker Lendecke
2008-08-13 17:40:30 +02:00
parent e25fadd359
commit ef5489ac80

View File

@ -658,6 +658,11 @@ const char *nt_errstr(NTSTATUS nt_code)
}
#endif
if (NT_STATUS_IS_DOS(nt_code)) {
return smb_dos_err_name(NT_STATUS_DOS_CLASS(nt_code),
NT_STATUS_DOS_CODE(nt_code));
}
while (nt_errs[idx].nt_errstr != NULL) {
if (NT_STATUS_EQUAL(nt_errs[idx].nt_errcode, nt_code)) {
return nt_errs[idx].nt_errstr;