This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: O_NOFOLLOW
- To: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Subject: Re: O_NOFOLLOW
- From: Roland McGrath <roland@frob.com>
- Date: Sat, 24 Oct 1998 05:35:50 -0400
- Cc: GNU libc hacker <libc-hacker@gnu.org>
> It means to not follow symlinks when opening - but if a symlink is
> tried it's not opened at all.
I see. It just returns some error if the final component is a symlink?
> This was AFAIK implemented to guard against creating, e.g. forcing
> root to create a file (core) that is symlinked to /etc/passwd.
? What's wrong with O_CREAT|O_EXCL?