Re: [RFC] File flags handling - proposal for API.

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Fri, 2 Jul 1999 21:17:54 +0200


Simon Richter wrote:
> A real problem, however, is that fstat() does not allow you to check
> whether you just opened a link. Maybe a solution would be to add an
> O_NOLINK flag that makes open refuse to open a symlink (that is not root
> owned?)?

Already done in 2.1.126: O_NOFOLLOW.
Broken for directories before 2.2.6.

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/