svn commit: samba r18622 - in branches/SAMBA_3_0/source/python: .

gd at samba.org gd at samba.org
Mon Sep 18 19:43:09 GMT 2006


Author: gd
Date: 2006-09-18 19:43:08 +0000 (Mon, 18 Sep 2006)
New Revision: 18622

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18622

Log:
Fix at least the python bindings *build*, I'm sure there is much more to
do so that they actually work again.

Guenther

Modified:
   branches/SAMBA_3_0/source/python/py_smb.c


Changeset:
Modified: branches/SAMBA_3_0/source/python/py_smb.c
===================================================================
--- branches/SAMBA_3_0/source/python/py_smb.c	2006-09-18 19:27:15 UTC (rev 18621)
+++ branches/SAMBA_3_0/source/python/py_smb.c	2006-09-18 19:43:08 UTC (rev 18622)
@@ -99,7 +99,7 @@
 	static char *kwlist[] = { "creds", NULL };
 	PyObject *creds;
 	char *username, *domain, *password, *errstr;
-	BOOL result;
+	NTSTATUS result;
 
 	if (!PyArg_ParseTupleAndKeywords(args, kw, "|O", kwlist, &creds))
 		return NULL;
@@ -118,7 +118,7 @@
 		return NULL;
 	}
 
-	return Py_BuildValue("i", result);
+	return Py_BuildValue("i", NT_STATUS_IS_OK(result));
 }
 
 static PyObject *py_smb_tconx(PyObject *self, PyObject *args, PyObject *kw)



More information about the samba-cvs mailing list