link: work around IRIX bug
authorEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 18:15:02 +0000 (12:15 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 22 Jun 2011 18:36:54 +0000 (12:36 -0600)
commitdf1c2344f29dbca57d9e560aaa89aa2c20cdda7f
tree5a25ae197206b35a74628ea65fbf001845714459
parentcbf381169705782b144b2733798a62c11aa473a5
link: work around IRIX bug

On IRIX 6.5, link(file, "dangling") creates the target of dangling
as a link to file, rather than failing with EEXIST.

* m4/link.m4 (gl_FUNC_LINK): Expose the bug.
* lib/link.c (rpl_link): Work around it.
* tests/test-link.h (test_link): Enhance test.
* doc/posix-functions/link.texi (link): Document the bug.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/posix-functions/link.texi
lib/link.c
m4/link.m4
tests/test-link.h