1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-23 09:52:23 +03:00

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>
This commit is contained in:
Eric Blake
2011-06-22 12:15:02 -06:00
parent cbf3811697
commit df1c2344f2
5 changed files with 32 additions and 6 deletions

View File

@@ -15,6 +15,10 @@ mingw.
This function fails to reject trailing slashes on non-directories on
some platforms:
FreeBSD 7.2, Solaris 11 2010-11, Cygwin 1.5.x.
@item
When the second argument is a dangling symlink, some platforms follow
that link and create the destination rather than failing:
IRIX 6.5.
@end itemize
Portability problems not fixed by Gnulib: