[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.127,2.128

Guido van Rossum python-dev@python.org
Thu, 30 Mar 2000 19:48:24 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules

Modified Files:
	posixmodule.c 
Log Message:
Oops, the previous patch contained a bug in chmod.  Fixed now.


Index: posixmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.127
retrieving revision 2.128
diff -C2 -r2.127 -r2.128
*** posixmodule.c	2000/03/31 00:47:28	2.127
--- posixmodule.c	2000/03/31 00:48:21	2.128
***************
*** 696,703 ****
  	int i;
  	int res;
! 	if (!PyArg_ParseTuple(args, format, &path, &i))
  		return NULL;
  	Py_BEGIN_ALLOW_THREADS
! 	res = chmod(path, i);
  	Py_END_ALLOW_THREADS
  	if (res < 0)
--- 696,703 ----
  	int i;
  	int res;
! 	if (!PyArg_ParseTuple(args, "si", &path, &i))
  		return NULL;
  	Py_BEGIN_ALLOW_THREADS
! 	res = chmod(path, (mode_t)i);
  	Py_END_ALLOW_THREADS
  	if (res < 0)