mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-15 21:40:05 +00:00
hurd: Fix spawni returning allocation errors.
This commit is contained in:
parent
8f22e36238
commit
323f367cc4
@ -787,12 +787,18 @@ retry:
|
||||
/* Relative path */
|
||||
char *cwd = __getcwd (NULL, 0);
|
||||
if (cwd == NULL)
|
||||
goto out;
|
||||
{
|
||||
err = errno;
|
||||
goto out;
|
||||
}
|
||||
|
||||
res = __asprintf (&concat_name, "%s/%s", cwd, relpath);
|
||||
free (cwd);
|
||||
if (res == -1)
|
||||
goto out;
|
||||
{
|
||||
err = errno;
|
||||
goto out;
|
||||
}
|
||||
|
||||
abspath = concat_name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user