]> Savannah Git Hosting - gnulib.git/commit
readlink: Work around a Cygwin 3.3.6 bug.
authorBruno Haible <bruno@clisp.org>
Mon, 3 Jun 2024 23:48:04 +0000 (01:48 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Jun 2024 23:24:43 +0000 (01:24 +0200)
commitbec9bb41170be4295be66a75db898cb8a2e74300
tree884577d462f59e69974233ee27f5151052e5cfd1
parent6978f62e1c5a7fb093a5774fdc517962311aa622
readlink: Work around a Cygwin 3.3.6 bug.

* m4/readlink.m4 (gl_FUNC_READLINK): Set REPLACE_READLINK to 1 on Cygwin.
* lib/readlink.c (rpl_readlink): On Cygwin, for /dev/* files, don't
return results that start with a backslash.
* tests/test-readlink.h (test_readlink): Add a test of /dev/null.
* tests/test-canonicalize-lgpl.c (main): Likewise.
* tests/test-canonicalize.c (main): Likewise.
* doc/posix-functions/readlink.texi: Mention the Cygwin bug.
ChangeLog
doc/posix-functions/readlink.texi
lib/readlink.c
m4/readlink.m4
tests/test-canonicalize-lgpl.c
tests/test-canonicalize.c
tests/test-readlink.h