canonicalize-lgpl: Work around // handling in realpath() of musl 1.2.2.
commit6ee6c7189f4bafbb603ef043fdf44b84c3f7532a
authorBruno Haible <bruno@clisp.org>
Sun, 17 Jan 2021 21:07:14 +0000 (17 22:07 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 17 Jan 2021 21:07:14 +0000 (17 22:07 +0100)
treefacb1ccd71884d03ce1523ae522e34634050acf9
parentb67dcfce4b8d5daf32340616b8bc1b106323c14a
canonicalize-lgpl: Work around // handling in realpath() of musl 1.2.2.

Reported by Natanael Copa <ncopa@alpinelinux.org> in
<https://lists.gnu.org/archive/html/bug-gettext/2021-01/msg00021.html>.

* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add a test whether // is
the same as /, on Linux only.
* lib/canonicalize-lgpl.c: Correct indentation of preprocessor
directives.
* doc/posix-functions/realpath.texi: Mention the musl 1.2.2 bug.
ChangeLog
doc/posix-functions/realpath.texi
lib/canonicalize-lgpl.c
m4/canonicalize.m4