This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: O_NOFOLLOW


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]