Download raw body.
-portable: add a wrapper for open() on FreeBSD
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
-portable: add a wrapper for open() on FreeBSD