Commit f72f83c75a0ea544f8636a8640fe782a11bae4fb

Bruno Haible 2024-06-04T01:48:04

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.