svn commit: samba r2823 - branches/SAMBA_3_0/source/python trunk/source/python

tpot at samba.org tpot at samba.org
Tue Oct 5 01:36:38 GMT 2004


Author: tpot
Date: 2004-10-05 01:36:37 +0000 (Tue, 05 Oct 2004)
New Revision: 2823

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2823&nolog=1

Log:
Patch from Brett Funderburg to pass create options parameter to 
nt_create_andx() function.

Modified:
   branches/SAMBA_3_0/source/python/py_smb.c
   trunk/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	2004-10-05 00:48:56 UTC (rev 2822)
+++ branches/SAMBA_3_0/source/python/py_smb.c	2004-10-05 01:36:37 UTC (rev 2823)
@@ -149,7 +149,8 @@
 	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 @@
 	/* 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;

Modified: trunk/source/python/py_smb.c
===================================================================
--- trunk/source/python/py_smb.c	2004-10-05 00:48:56 UTC (rev 2822)
+++ trunk/source/python/py_smb.c	2004-10-05 01:36:37 UTC (rev 2823)
@@ -149,7 +149,8 @@
 	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 @@
 	/* 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;



More information about the samba-cvs mailing list