public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Samuel Thibault <sthibaul@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] hurd: Fix spawni returning allocation errors. Date: Tue, 14 Nov 2023 22:57:52 +0000 (GMT) [thread overview] Message-ID: <20231114225752.98E13384191E@sourceware.org> (raw) 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; }
reply other threads:[~2023-11-14 22:57 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231114225752.98E13384191E@sourceware.org \ --to=sthibaul@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).