Fix bug #817757, "unaccessible directories displayed" submitted by

Anthon van der Neut using the fix that he suggested. This change
also seems to fix another bug, #509961

* lib/vclib/bincvs/__init__.py
  (_check_path):
    fix check of os.access() return value


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@766 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
rey4 2003-10-27 19:30:52 +00:00
parent 7994db2d37
commit 6f4440191e
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ 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 (os.access(pathname,os.R_OK) == -1):
elif ((mode & mask) != mask) and (not os.access(pathname,os.R_OK)):
valid = 0
if isdir: