From: "Cristian Rodríguez" <crrodriguez@opensuse.org>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH 2/2] linux: posix_spawn: return EINVAL on argc < 1
Date: Fri, 28 Jan 2022 16:08:11 -0300 [thread overview]
Message-ID: <CAPBLoAcjZexjN59tCjSEH6r8Rg1FmWyDtEVG9P8oOxMAbK4D4w@mail.gmail.com> (raw)
In-Reply-To: <a9828191-eb42-ded7-a29f-2768ed94d906@linaro.org>
hi, thanks for reading...
On Fri, Jan 28, 2022 at 2:07 PM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
> 2. Add the proper check on generic, Linux, and Hurd implementation execveat.
but what is the proper check.. ?
if (path == NULL || argv == NULL || envp == NULL || argv[0] == NULL)
{
__set_errno (EINVAL);
return -1;
}
or should I also check fd for validity.. I do not think so.. rhave to
special case various combinations in that case... (AT_FCWD, absolute
vs relative "path".. vs dirfd..nope..)
prev parent reply other threads:[~2022-01-28 19:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 13:39 Cristian Rodríguez
2022-01-28 15:26 ` Cristian Rodríguez
2022-01-28 17:07 ` Adhemerval Zanella
2022-01-28 18:03 ` Joseph Myers
2022-01-28 23:05 ` Adhemerval Zanella
2022-01-28 23:26 ` Joseph Myers
2022-01-28 23:35 ` Cristian Rodríguez
2022-01-28 23:49 ` Joseph Myers
2022-01-29 1:04 ` Cristian Rodríguez
2022-03-23 14:40 ` Cristian Rodríguez
2022-01-28 19:08 ` Cristian Rodríguez [this message]
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=CAPBLoAcjZexjN59tCjSEH6r8Rg1FmWyDtEVG9P8oOxMAbK4D4w@mail.gmail.com \
--to=crrodriguez@opensuse.org \
--cc=adhemerval.zanella@linaro.org \
--cc=libc-alpha@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: link
Be 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).