diff options
author | Eric Blake <ebb9@byu.net> | 2009-09-22 17:15:04 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-09-23 05:39:19 -0600 |
commit | 5835d9b52879c334f16e747c54be8ec9c62e8536 (patch) | |
tree | d0475406eb50450b7c62e44c7fd1f675b3c0a9e3 /modules/readlink-tests | |
parent | 5b192b3998d3b3bcea45594d180200cd44f35e3b (diff) | |
download | gnulib-5835d9b52879c334f16e747c54be8ec9c62e8536.tar.gz |
readlink: fix Solaris 9 bug with trailing slash
readlink("link/",buf,len) mistakenly succeeded.
* lib/readlink.c (rpl_readlink): Work around trailing slash bug.
* m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
* doc/posix-functions/readlink.texi (readlink): Document this.
* modules/readlink-tests: New test.
* tests/test-readlink.c: Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/readlink-tests')
-rw-r--r-- | modules/readlink-tests | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/readlink-tests b/modules/readlink-tests new file mode 100644 index 0000000000..84994d572e --- /dev/null +++ b/modules/readlink-tests @@ -0,0 +1,11 @@ +Files: +tests/test-readlink.c + +Depends-on: +symlink + +configure.ac: + +Makefile.am: +TESTS += test-readlink +check_PROGRAMS += test-readlink |