[Python-checkins] python/dist/src/Modules posixmodule.c,2.187.2.4,2.187.2.5

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Tue, 18 Jun 2002 09:17:34 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv10837/Modules

Modified Files:
      Tag: release21-maint
	posixmodule.c 
Log Message:
Clarified documentation for os.access().
Based on 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.187.2.4
retrieving revision 2.187.2.5
diff -C2 -d -r2.187.2.4 -r2.187.2.5
*** posixmodule.c	8 Apr 2002 04:42:09 -0000	2.187.2.4
--- posixmodule.c	18 Jun 2002 16:17:32 -0000	2.187.2.5
***************
*** 597,601 ****
  static char posix_access__doc__[] =
  "access(path, mode) -> 1 if granted, 0 otherwise\n\
! Test for access to a file.";
  
  static PyObject *
--- 597,605 ----
  static char 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 *