> I would be shocked if POSIX allowed a non-root user to probe file > entries under a root/700 directory... Exactly. If a program is written to use access(), and subsequently that program is used in a setuid(root) situation, access() will say you can't access the file, but exists() will say it exists. So access() cannot be used to emulate exists() -- they serve different purposes, and can return different results. > What a paradox -- when I submitted the patch to add F_OK, you said that > exists() did the same thing. ;-) Given the widespread misunderstanding of what access() does, anything that makes using access() easier is a mistake IMO. --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4