]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
Fix typo in previous change
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Aug 2025 16:25:15 +0000 (09:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 12 Aug 2025 16:25:15 +0000 (09:25 -0700)
lib/unlinkat.c

index eee9a8668d2ba8d5f16697ebcb621096390e99c8..f2a9d4e93ced69b50f18067c8ab477ba442604bb 100644 (file)
@@ -73,7 +73,7 @@ rpl_unlinkat (int fd, char const *name, int flag)
             short_name[--len] = '\0';
           char linkbuf[1];
           if (len && ! (readlinkat (fd, short_name, linkbuf, 1) < 0
-                        || errno == EINVAL))
+                        && errno == EINVAL))
             {
               free (short_name);
               errno = EPERM;