Subject: Re: O_REG_ONLY, O_NOFOLLOW, open_ass(), and other such beasts
To: Warner Losh <imp@village.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 12/06/2000 00:21:02
>FreeBSD implements O_NOFOLLOW as folllows:
>     If O_NOFOLLOW is used in the mask and the target file passed to
>     open() is a symbolic link then the open() will fail.
>
>Just as an FYI.  If you are going to do something different than the
>above, then a different name might be in order.

i'm curious...i just perused the freebsd source, but was not able to
tell quickly if it handles the case of a symlink in the path to the
target.  presumably, if i tell it to open /tmp/foo/bar and bar is a
symlink, that will fail.  but what if foo is a symlink?

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."