link: detect FreeBSD bug
authorEric Blake <ebb9@byu.net>
Mon, 9 Nov 2009 21:23:11 +0000 (14:23 -0700)
committerIan Beckwith <ianb@erislabs.net>
Sun, 15 Nov 2009 02:50:32 +0000 (02:50 +0000)
commit24c30abb7272d5085391388fff826226b525954d
treed13011c01812d671ba6f71501633235034f0d04e
parent12a64eb033ac96ccc78f96d66067c70be7d2be90
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>
(cherry picked from commit 492960c3a5eaaae32cd9d69d6fd5d7fdf96cbb78)
ChangeLog
doc/posix-functions/link.texi
m4/link.m4
tests/test-link.h
tests/test-linkat.c