From 505f1d1e0415edbe68c92b396d81aca96ccfbca1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 18 Sep 2006 19:43:08 +0000 Subject: r18622: Fix at least the python bindings *build*, I'm sure there is much more to do so that they actually work again. Guenther (This used to be commit 49d07d0cf9f8735f53d40dd094a0b17b4573e2b2) --- source3/python/py_smb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/python/py_smb.c b/source3/python/py_smb.c index f92a9e258d..2f5d1161d8 100644 --- a/source3/python/py_smb.c +++ b/source3/python/py_smb.c @@ -99,7 +99,7 @@ static PyObject *py_smb_session_setup(PyObject *self, PyObject *args, 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 @@ static PyObject *py_smb_session_setup(PyObject *self, PyObject *args, 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) -- cgit