summaryrefslogtreecommitdiffstats
path: root/source/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-10-05 01:36:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:54 -0500
commitfa3e8365641e84ca361dc95bac33a9d56e9d799b (patch)
treedc57af22e04bed5de4e203300666840b6b372fe7 /source/python
parent30ae13cb9fbe5f04e46bcbd5e0c19da9b33341d5 (diff)
downloadsamba-fa3e8365641e84ca361dc95bac33a9d56e9d799b.tar.gz
samba-fa3e8365641e84ca361dc95bac33a9d56e9d799b.tar.xz
samba-fa3e8365641e84ca361dc95bac33a9d56e9d799b.zip
r2823: Patch from Brett Funderburg to pass create options parameter to
nt_create_andx() function.
Diffstat (limited to 'source/python')
-rw-r--r--source/python/py_smb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/python/py_smb.c b/source/python/py_smb.c
index e5e65061965..1347f79a9b3 100644
--- a/source/python/py_smb.c
+++ b/source/python/py_smb.c
@@ -149,7 +149,8 @@ static PyObject *py_smb_nt_create_andx(PyObject *self, PyObject *args,
cli_state_object *cli = (cli_state_object *)self;
static char *kwlist[] = { "filename", "desired_access",
"file_attributes", "share_access",
- "create_disposition", NULL };
+ "create_disposition", "create_options",
+ NULL };
char *filename;
uint32 desired_access, file_attributes = 0,
share_access = FILE_SHARE_READ | FILE_SHARE_WRITE,
@@ -159,7 +160,7 @@ static PyObject *py_smb_nt_create_andx(PyObject *self, PyObject *args,
/* Parse parameters */
if (!PyArg_ParseTupleAndKeywords(
- args, kw, "si|iii", kwlist, &filename, &desired_access,
+ args, kw, "si|iiii", kwlist, &filename, &desired_access,
&file_attributes, &share_access, &create_disposition,
&create_options))
return NULL;