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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user