Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2024 08:43:27 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Gordon Bergling <gbe@FreeBSD.org>
Cc:        src-committers@FreeBSD.org,  dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 421025a274fb - main - access.2: Mention that lstat(2) should be used for symbolic links
Message-ID:  <86le4czyeo.fsf@ltc.des.dev>
In-Reply-To: <202405130840.44D8eXdL014138@gitrepo.freebsd.org> (Gordon Bergling's message of "Mon, 13 May 2024 08:40:33 GMT")
References:  <202405130840.44D8eXdL014138@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Gordon Bergling <gbe@FreeBSD.org> writes:
> commit 421025a274fb5759b3ecc8bdb30b24db830b45ae
> Author:     Gordon Bergling <gbe@FreeBSD.org>
> AuthorDate: 2024-05-13 08:40:12 +0000
> Commit:     Gordon Bergling <gbe@FreeBSD.org>
> CommitDate: 2024-05-13 08:40:12 +0000
>
>     access.2: Mention that lstat(2) should be used for symbolic links
>=20=20=20=20=20
>     access(), eaccess() and faccessat() will always dereference
>     symbolic links.
>=20=20=20=20=20
>     So add a note in the manual page, that lstat(2) should be
>     used in the case of symbolic links.

Please revert.  This is pointless.  The purpose of `access()` is to (try
to) tell you what would happen if you tried to `open()` a given path,
and there is no way to `open()` a symlink without dereferencing it, so
this addition answers a question that nobody is asking.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org



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