]> Savannah Git Hosting - gnulib.git/commitdiff
linkat tests: Revert the last change.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 19 Jan 2025 02:00:55 +0000 (18:00 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 19 Jan 2025 02:00:55 +0000 (18:00 -0800)
* tests/test-linkat.c (main): Disallow EINVAL an alternative error
value.
* doc/posix-functions/linkat.texi: Document the GNU/Hurd bug.

ChangeLog
doc/posix-functions/linkat.texi
tests/test-linkat.c

index 19332fa253309e8aa718a789070d083d3df40c1d..2057a6da9a5231c7038ad91822b8bef4ebcd2486 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2025-01-18  Collin Funk  <collin.funk1@gmail.com>
 
+       linkat tests: Revert the last change.
+       * tests/test-linkat.c (main): Disallow EINVAL an alternative error
+       value.
+       * doc/posix-functions/linkat.texi: Document the GNU/Hurd bug.
+
        linkat tests: Avoid failure on GNU/Hurd.
        * tests/test-linkat.c (main): Allow EINVAL an alternative error value.
 
index 2c2eeb0e9402b0ea7d39180a725b38b38d295c08..ceeddaff6c71c309e59e43874c253444b98d5162 100644 (file)
@@ -27,4 +27,10 @@ Linux kernel 2.6.17.
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+@code{linkat (fd, "directory", fd, "symlink/" ...)} sets @code{errno}
+to @code{EINVAL} instead of @code{EEXIST} or @code{ENOTDIR} on some
+platforms:
+@c https://sourceware.org/bugzilla/show_bug.cgi?id=32569
+GNU/Hurd.
 @end itemize
index 80e7222c43a5e896550e8e1a4f77443d81113e69..5fd2e37ebf262e64a9ba65386a8c05861ce320cc 100644 (file)
@@ -223,7 +223,7 @@ main (void)
   ASSERT (errno == EEXIST || errno == EPERM || errno == EACCES);
   errno = 0;
   ASSERT (linkat (dfd, BASE "link1", dfd, BASE "sub1/", 0) == -1);
-  ASSERT (errno == EEXIST || errno == ENOTDIR || errno == EINVAL);
+  ASSERT (errno == EEXIST || errno == ENOTDIR);
   errno = 0;
   ASSERT (linkat (dfd, BASE "link1", dfd, BASE "sub1",
                   AT_SYMLINK_FOLLOW) == -1);