link: detect FreeBSD bug
authorEric Blake <ebb9@byu.net>
Mon, 9 Nov 2009 21:23:11 +0000 (14:23 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 10 Nov 2009 13:32:55 +0000 (06:32 -0700)
commit492960c3a5eaaae32cd9d69d6fd5d7fdf96cbb78
tree7b8a984a06d449031bf324aa8902f834ee4693c2
parent24208770c8721323060207c9be83dd24400678d3
link: detect FreeBSD bug

link("link-to-file/","a") mistakenly created "a" as a link to "file".

* m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
symlink.
* doc/posix-functions/link.texi (link): Document the bug.
* tests/test-link.h (test_link): Enhance test.
* tests/test-linkat.c (main): Update caller.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/link.texi
m4/link.m4
tests/test-link.h
tests/test-linkat.c