A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025528.html below:

[Python-Dev] large file support

[Python-Dev] large file support [Python-Dev] large file supportGuido van Rossum guido@python.org
Tue, 18 Jun 2002 08:05:35 -0400
> 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