diff options
author | Volker Lendecke <vl@samba.org> | 2008-08-13 17:40:30 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-08-13 17:50:24 +0200 |
commit | 870c54ebb4097d14e3e89a3b81df4c3fc9b57ad3 (patch) | |
tree | 2144d079c605675c63d9b539c6b0c62887aa25e8 | |
parent | 88795452824149e86ebcf85f571050a713144783 (diff) | |
download | samba-870c54ebb4097d14e3e89a3b81df4c3fc9b57ad3.tar.gz samba-870c54ebb4097d14e3e89a3b81df4c3fc9b57ad3.tar.bz2 samba-870c54ebb4097d14e3e89a3b81df4c3fc9b57ad3.zip |
If it is a forced DOS error, nt_errstr should say so
(This used to be commit ef5489ac805237274d6088aaa7ae870cc0deb52f)
-rw-r--r-- | source3/libsmb/nterr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c index fc6340342f..a52a1bc6e1 100644 --- a/source3/libsmb/nterr.c +++ b/source3/libsmb/nterr.c @@ -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; |