Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Feb 2026 16:57:10 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Lionel Cons <lionelcons1972@gmail.com>
Cc:        Freebsd hackers list <freebsd-hackers@freebsd.org>
Subject:   Re: Implementing O_SYMLINK in FreeBSD?
Message-ID:  <86qzqt6hbd.fsf@ltc.des.dev>
In-Reply-To: <CAPJSo4Xvp4rx3jOJSQWNaF2OqO5aM7GqQcfcsJE3Nc36fE2qVA@mail.gmail.com> (Lionel Cons's message of "Mon, 9 Feb 2026 16:14:00 %2B0100")
References:  <CAPJSo4VDAb5yPh%2BLV9qDgFPUisuTWk1DhB3boGPenrY3GJo2yQ@mail.gmail.com> <aYZuY2th1CXXAULX@kib.kiev.ua> <CAPJSo4Xvp4rx3jOJSQWNaF2OqO5aM7GqQcfcsJE3Nc36fE2qVA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

Lionel Cons <lionelcons1972@gmail.com> writes:
> O_SYMLINK opens the symlink itself, and not the file it is referring
> to.

Correct.

> If the name is not a symlink, the openat() will fail.

Incorrect.

DES
-- 
Dag-Erling Smørgrav - des@FreeBSD.org


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86qzqt6hbd.fsf>