public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Fix spawni returning allocation errors.
@ 2023-11-14 22:57 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-11-14 22:57 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=323f367cc46b80224d39b082adf7be74b49ed843
commit 323f367cc46b80224d39b082adf7be74b49ed843
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Tue Nov 14 23:55:35 2023 +0100
hurd: Fix spawni returning allocation errors.
Diff:
---
sysdeps/mach/hurd/spawni.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/sysdeps/mach/hurd/spawni.c b/sysdeps/mach/hurd/spawni.c
index 5e05308066..9516001817 100644
--- a/sysdeps/mach/hurd/spawni.c
+++ b/sysdeps/mach/hurd/spawni.c
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-14 22:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-14 22:57 [glibc] hurd: Fix spawni returning allocation errors Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).