Discussion:
posix_spawnp(3) not checking for empty file name
(too old to reply)
t***@kergis.com
2024-09-29 11:42:36 UTC
Permalink
If the execvp(3) checks that the name passed is not the empty string,
posix_spawnp(3) doesn't with the file argument.

Is it intended?
--
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Martin Husemann
2024-09-30 14:37:23 UTC
Permalink
Post by t***@kergis.com
If the execvp(3) checks that the name passed is not the empty string,
posix_spawnp(3) doesn't with the file argument.
Is it intended?
It is just an optimization to speed up failure. I'll add it to posix_spawnp(3)
too.

Martin

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...