Hi, On Wed, May 02, 2012 at 09:16:36PM +0300, Alon Bar-Lev wrote: > Looks good. > If you testing this one, please ensure symbolic links also works properly... > :)
The man page for access() (on Linux) states:
DESCRIPTION
access() checks whether the calling process can access the file path-
name. If pathname is a symbolic link, it is dereferenced.
...
CONFORMING TO
SVr4, 4.3BSD, POSIX.1-2001.
so it should work for symlinks, across all POSIX compliant platforms (even
if the NetBSD and FreeBSD manpages do not mention anything about symlinks,
except ELOOP).
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]
fax: +49-89-35655025 [email protected]
pgpHNUAsIpy3C.pgp
Description: PGP signature
