"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: -portable: add a wrapper for open() on FreeBSD
To:
Thomas Adam <thomas@xteddy.org>, "Todd C. Miller" <millert@openbsd.org>, Christian Weisgerber <naddy@mips.inka.de>, gameoftrees@openbsd.org
Date:
Sun, 26 Sep 2021 14:17:59 +0200

Download raw body.

Thread
On Sun, Sep 26, 2021 at 02:05:33PM +0200, Stefan Sperling wrote:
> On Sun, Sep 26, 2021 at 01:57:49PM +0200, Stefan Sperling wrote:
> > I suspect it is not intentional.
> > 
> > It looks like EMLINK from open(symlink, O_NOFOLLOW) comes from this change:
> > https://reviews.freebsd.org/D29323
> > (I don't have a freebsd system to test with, so I might be wrong.)
> 
> I made a mistake and did no go back far enough in history.
> 
> Turns out this behaviour was introduced in FreeBSD way back in 1998:
> https://cgit.freebsd.org/src/commit/?id=100ceca222a193e5d374a3dc9782287785dd9b61
> 
> No rationale given for the switch from ELOOP to EMLINK.

It does not look like there is any hope for this to change:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214633