[Python-checkins] python/dist/src/Doc/lib libos.tex,1.53.4.7,1.53.4.8

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


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

Modified Files:
      Tag: release21-maint
	libos.tex 
Log Message:
Clarified documentation for os.access().
Based on patch contributed by Sean Reifschneider.
Closes SF patch #570618.


Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.53.4.7
retrieving revision 1.53.4.8
diff -C2 -d -r1.53.4.7 -r1.53.4.8
*** libos.tex	1 May 2002 03:33:02 -0000	1.53.4.7
--- libos.tex	18 Jun 2002 16:17:31 -0000	1.53.4.8
***************
*** 533,541 ****
  
  \begin{funcdesc}{access}{path, mode}
! Check read/write/execute permissions for this process or existence of
! file \var{path}.  \var{mode} should be \constant{F_OK} to test the
! existence of \var{path}, or it can be the inclusive OR of one or more
! of \constant{R_OK}, \constant{W_OK}, and \constant{X_OK} to test
! permissions.  Return \code{1} if access is allowed, \code{0} if not.
  See the \UNIX{} man page \manpage{access}{2} for more information.
  Availability: \UNIX{}, Windows.
--- 533,543 ----
  
  \begin{funcdesc}{access}{path, mode}
! Use the real uid/gid to test for access to \var{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 \var{path}.  \var{mode} should be \constant{F_OK}
! to test the existence of \var{path}, or it can be the inclusive OR of
! one or more of \constant{R_OK}, \constant{W_OK}, and \constant{X_OK} to
! test permissions.  Return \code{1} if access is allowed, \code{0} if not.
  See the \UNIX{} man page \manpage{access}{2} for more information.
  Availability: \UNIX{}, Windows.