From: Paul Eggert Date: Tue, 12 Aug 2025 05:01:14 +0000 (-0700) Subject: unlinkat: fix GNU/Hurd typo X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79a205e1cdd26bd5a34fda20bc7279a47fa84d2b;p=thirdparty%2Fgnulib.git unlinkat: fix GNU/Hurd typo Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2025-08/msg00041.html * lib/unlinkat.c (rpl_unlinkat): Declare missing local. --- diff --git a/lib/unlinkat.c b/lib/unlinkat.c index 6873ba558d..72bee75b0b 100644 --- a/lib/unlinkat.c +++ b/lib/unlinkat.c @@ -71,6 +71,7 @@ rpl_unlinkat (int fd, char const *name, int flag) memcpy (short_name, name, len); while (len && ISSLASH (short_name[len - 1])) short_name[--len] = '\0'; + char linkbuf[1]; if (len && (readlinkat (fd, short_name, linkbuf, 1) < 0 || errno == EINVAL)) {