[Python-checkins] python/dist/src/Modules posixmodule.c,2.237,2.238
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Tue, 18 Jun 2002 09:15:53 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv10294/Modules
Modified Files:
posixmodule.c
Log Message:
Clarified documentation for os.access().
Patch contributed by Sean Reifschneider.
Closes SF patch #570618.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.237
retrieving revision 2.238
diff -C2 -d -r2.237 -r2.238
*** posixmodule.c 13 Jun 2002 21:22:11 -0000 2.237
--- posixmodule.c 18 Jun 2002 16:15:51 -0000 2.238
***************
*** 737,741 ****
PyDoc_STRVAR(posix_access__doc__,
"access(path, mode) -> 1 if granted, 0 otherwise\n\
! Test for access to a file.");
static PyObject *
--- 737,745 ----
PyDoc_STRVAR(posix_access__doc__,
"access(path, mode) -> 1 if granted, 0 otherwise\n\
! Use the real uid/gid to test for access to a path. Note that most
! operations will use the effective uid/gid, therefore this routine can
! be used in a suid/sgid environment to test if the invoking user has the
! specified access to the path. The mode argument can be F_OK to test
! existance, or the inclusive-OR of R_OK, W_OK, and X_OK.");
static PyObject *