]> Savannah Git Hosting - gnulib.git/commit
readlinkat: avoid OS X 10.10 trailing slash bug
authorPádraig Brady <P@draigBrady.com>
Sun, 31 May 2015 02:08:52 +0000 (03:08 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 31 May 2015 02:44:51 +0000 (03:44 +0100)
commit8c9cfa07e6eb6a3365a516c90568fc6c5f3fcd34
treed17818b3b9621dfb72add4e13ef646cfa487fbe0
parent04e445830cb607c69888534d88e6f1f6eb01839e
readlinkat: avoid OS X 10.10 trailing slash bug

* doc/posix-functions/readlink.texi: Mention that OS X 10.10
has this bug.
* doc/posix-functions/readlinkat.texi: Likewise.  Also mention
that OS X 10.10 has this function.
* lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
as done for readlink().
* m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
trailing slash bug, and assume readlinkat() has the same issue.
Also fix a typo where $gl_cv_decl_readlink_works was tested,
rather than the correct $gl_cv_decl_readlinkat_works.
ChangeLog
doc/posix-functions/readlink.texi
doc/posix-functions/readlinkat.texi
lib/readlinkat.c
m4/readlinkat.m4