Subject: Re: O_REG_ONLY, O_NOFOLLOW, open_ass(), and other such beasts
To: Warner Losh <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
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" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."