The branch, v3-devel has been updated
       via  ef5489ac805237274d6088aaa7ae870cc0deb52f (commit)
      from  e25fadd35900bda1ab411ac5abcf664b5eeb531f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-devel


- Log -----------------------------------------------------------------
commit ef5489ac805237274d6088aaa7ae870cc0deb52f
Author: Volker Lendecke <[EMAIL PROTECTED]>
Date:   Wed Aug 13 17:40:30 2008 +0200

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

-----------------------------------------------------------------------

Summary of changes:
 source/libsmb/nterr.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/nterr.c b/source/libsmb/nterr.c
index fc63403..a52a1bc 100644
--- a/source/libsmb/nterr.c
+++ b/source/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;


-- 
Samba Shared Repository

Reply via email to