]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
doc: mention empty symlink issues
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Oct 2025 22:07:39 +0000 (15:07 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Oct 2025 22:27:05 +0000 (15:27 -0700)
doc/posix-functions/symlink.texi
doc/posix-functions/symlinkat.texi

index de4aae4beb8280e7975bef4890ed26a1e00c99b6..8007a5fa354cf4d2a0a533f6e31ad91b07bb3e24 100644 (file)
@@ -23,4 +23,10 @@ Portability problems not fixed by Gnulib:
 @itemize
 @item
 Some file systems do not support symbolic links.
+@item
+If the target is the empty string, this function can create an empty
+symbolic link instead of failing with @code{ENOENT} as GNU/Linux does:
+FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.8, Solaris 11.4.
+On Solaris, the empty symbolic link @code{""} resolves like @code{"."} does;
+on the other operating systems, resolution fails with @code{ENOENT}.
 @end itemize
index c3199cdd98c08f9b4af6a229c8d4f663125ed7bd..7ec8dd5172ddc8762657b497c5a19ae78d2a7f04 100644 (file)
@@ -29,4 +29,10 @@ Portability problems not fixed by Gnulib:
 This function always fails with @code{ENOSYS} on platforms that don't
 support symlinks:
 mingw, MSVC 14.
+@item
+If the target is the empty string, this function can create an empty
+symbolic link instead of failing with @code{ENOENT} as GNU/Linux does:
+FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.8, Solaris 11.4.
+On Solaris, the empty symbolic link @code{""} resolves like @code{"."} does;
+on the BSDs, resolution fails with @code{ENOENT}.
 @end itemize