diff options
author | Volker Lendecke <vl@samba.org> | 2009-02-01 17:17:37 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-02-10 21:55:13 +0100 |
commit | e3569df15b28896f4f79733df28498da2c021efe (patch) | |
tree | 2fee63562b51d1bed45e3a89a5036fd2045b9a8a /source3/libsmb | |
parent | ca23469a906bab690162184e8d3949897f7b5a67 (diff) | |
download | samba-e3569df15b28896f4f79733df28498da2c021efe.tar.gz samba-e3569df15b28896f4f79733df28498da2c021efe.tar.bz2 samba-e3569df15b28896f4f79733df28498da2c021efe.zip |
If we receive a DOS error code, nt_errstr should display it
Diffstat (limited to 'source3/libsmb')
-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 465d88a9b6..52e81acbc3 100644 --- a/source3/libsmb/nterr.c +++ b/source3/libsmb/nterr.c @@ -659,6 +659,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; |