1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

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.
This commit is contained in:
Paul Eggert
2025-08-11 22:01:14 -07:00
parent 1ab2424677
commit 79a205e1cd

View File

@@ -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))
{