Check for execute permission on directories in _check_path. This is

another fix suggested by Anthon van der Neut in bug #817757

* lib/vclib/bincvs/__init__.py
  (_check_path):
    check for execute permission on directories when we fall back to
    os.access()


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@767 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
rey4 2003-10-27 19:46:31 +00:00
parent 6f4440191e
commit c4f253f187
1 changed files with 3 additions and 2 deletions

View File

@ -518,8 +518,9 @@ else:
# If the process running the web server is a member of
# the group stat.ST_GID access may be granted.
# so the fall back to os.access is needed to figure this out.
elif ((mode & mask) != mask) and (not os.access(pathname,os.R_OK)):
valid = 0
elif (mode & mask) != mask:
if not os.access(pathname, isdir and (os.R_OK | os.X_OK) or os.R_OK):
valid = 0
if isdir:
kind = vclib.DIR