[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha4-97-g09cf8c7

Jelmer Vernooij jelmer at samba.org
Tue Jun 17 12:21:38 GMT 2008


The branch, v4-0-test has been updated
       via  09cf8c7dd82bb95e2f8782782286869654d96375 (commit)
      from  30a33cd0a64c434d6aee551f641343c3b2a6d9ca (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -----------------------------------------------------------------
commit 09cf8c7dd82bb95e2f8782782286869654d96375
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Tue Jun 17 14:21:02 2008 +0200

    Use friendly NTSTATUS message in python code when possible.

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

Summary of changes:
 source/libcli/util/pyerrors.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libcli/util/pyerrors.h b/source/libcli/util/pyerrors.h
index aaa35b4..47e6f58 100644
--- a/source/libcli/util/pyerrors.h
+++ b/source/libcli/util/pyerrors.h
@@ -22,7 +22,7 @@
 
 #define PyErr_FromWERROR(err) Py_BuildValue("(i,s)", W_ERROR_V(err), discard_const_p(char, win_errstr(err)))
 
-#define PyErr_FromNTSTATUS(status) Py_BuildValue("(i,s)", NT_STATUS_V(status), discard_const_p(char, nt_errstr(status)))
+#define PyErr_FromNTSTATUS(status) Py_BuildValue("(i,s)", NT_STATUS_V(status), discard_const_p(char, get_friendly_nt_error_msg(status)))
 
 #define PyErr_SetWERROR(err) \
 	PyErr_SetObject(PyExc_RuntimeError, PyErr_FromWERROR(err))


-- 
Samba Shared Repository


More information about the samba-cvs mailing list