]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r2823: Patch from Brett Funderburg to pass create options parameter to
authorTim Potter <tpot@samba.org>
Tue, 5 Oct 2004 01:36:37 +0000 (01:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:54 +0000 (10:52 -0500)
nt_create_andx() function.

source/python/py_smb.c

index e5e65061965f9a5395b30018ceb73423b65efd1e..1347f79a9b33145319f9b7cf038524320e83239c 100644 (file)
@@ -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;