From: Rich Felker <dalias@libc.org>
To: NRK <nrk@disroot.org>
Cc: musl@lists.openwall.com
Subject: Re: [musl] canonicalize_file_name(3)
Date: Fri, 19 Aug 2022 13:10:17 -0400 [thread overview]
Message-ID: <20220819171016.GI7074@brightrain.aerifal.cx> (raw)
In-Reply-To: <20220819134833.y4kzfrb6ukpnuhbc@gen2.localdomain>
On Fri, Aug 19, 2022 at 07:48:33PM +0600, NRK wrote:
> On Thu, Aug 18, 2022 at 07:30:10PM +0200, Alejandro Colomar wrote:
> > It relies on a glibc extension to realpath(3)
>
> What extension are we talking about exactly?
> Because `man canonicalize_file_name` states the following:
>
> | The call canonicalize_file_name(path) is equivalent to the call:
> | realpath(path, NULL);
>
> Calling realpath with NULL as the 2nd parameter is well defined since
> POSIX-2008 [0], if that's what you were talking about.
>
> [0]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html
This. To further elaborate, we generally don't add nonstandard
functions when there is a fully portable (or even just "at least as
portable as the extension" i.e. "works everywhere the extension would
have worked") way to do exactly the same thing that takes no effort
for the affected software to fix and do right.
Rich
prev parent reply other threads:[~2022-08-19 17:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-18 17:30 Alejandro Colomar
2022-08-19 13:48 ` NRK
2022-08-19 17:10 ` Rich Felker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220819171016.GI7074@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.com \
--cc=nrk@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).