1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-17 12:41:05 +03:00
Files
gnulib/doc/posix-functions/link.texi
Eric Blake 492960c3a5 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>
2009-11-10 06:32:55 -07:00

27 lines
667 B
Plaintext

@node link
@section @code{link}
@findex link
POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/link.html}
Gnulib module: link
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw.
@item
This function fails to reject trailing slashes on non-directories on
some platforms:
FreeBSD 7.2, Solaris, Cygwin 1.5.x.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
When the first argument is a symlink, some platforms create a
hard-link to what the symlink referenced, rather than to the symlink
itself. Use @samp{linkat} to force a particular behavior.
@end itemize