[hurd,commited] hurd: Fix spawni returning allocation errors.
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
warning
|
Patch already apply to master at the time it was sent
|
redhat-pt-bot/TryBot-32bit |
fail
|
Patch series failed to apply
|
Commit Message
---
sysdeps/mach/hurd/spawni.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
@@ -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;
}