[Python-checkins] python/dist/src/Modules posixmodule.c,2.216.4.3,2.216.4.4

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Tue, 18 Jun 2002 09:16:48 -0700


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

Modified Files:
      Tag: release22-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.216.4.3
retrieving revision 2.216.4.4
diff -C2 -d -r2.216.4.3 -r2.216.4.4
*** posixmodule.c	12 Mar 2002 21:38:31 -0000	2.216.4.3
--- posixmodule.c	18 Jun 2002 16:16:46 -0000	2.216.4.4
***************
*** 727,731 ****
  static char posix_access__doc__[] =
  "access(path, mode) -> 1 if granted, 0 otherwise\n\
! Test for access to a file.";
  
  static PyObject *
--- 727,735 ----
  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 *