| Commit message (Expand) | Author | Age | Files | Lines |
| * | convert execvp error handling to switch statement•••this is more extensible if we need to consider additional errors, and
more efficient as long as the compiler does not know it can cache the
result of __errno_location (a surprisingly complex issue detailed in
commit a603a75a72bb469c6be4963ed1b55fabe675fe15).
| Rich Felker | 2018-02-21 | 1 | -2/+9 |
| * | fix execvp failing on not-dir entries in PATH.•••It's better to make execvp continue PATH search on ENOTDIR rather than
issuing an error. Bogus entries should not render rest of PATH invalid.
Maintainer's note: POSIX seems to require the search to continue like
this as part of XBD 8.3 Other Environment Variables. Only errors that
conclusively determine non-existence are candidates for continuing;
otherwise for consistency we have to report the error.
| Przemyslaw Pawelczyk | 2018-02-21 | 1 | -1/+1 |
| * | make execvp continue PATH search on EACCES rather than issuing an errror•••the specification for execvp itself is unclear as to whether
encountering a file that cannot be executed due to EACCES during the
PATH search is a mandatory error condition; however, XBD 8.3's
specification of the PATH environment variable clarifies that the
search continues until a file with "appropriate execution permissions"
is found.
since it seems undesirable/erroneous to report ENOENT rather than
EACCES when an early path element has a non-executable file and all
later path elements lack any file by the requested name, the new code
stores a flag indicating that EACCES was seen and sets errno back to
EACCES in this case.
| Rich Felker | 2015-02-03 | 1 | -1/+4 |
| * | expose public execvpe interface | M Farkas-Dyck | 2014-04-20 | 1 | -0/+3 |
| * | consistently use the internal name __environ for environ•••patch by Jens Gustedt.
previously, the intended policy was to use __environ in code that must
conform to the ISO C namespace requirements, and environ elsewhere.
this policy was not followed in practice anyway, making things
confusing. on top of that, Jens reported that certain combinations of
link-time optimization options were breaking with the inconsistent
references; this seems to be a compiler or linker bug, but having it
go away is a nice side effect of the changes made here.
| Rich Felker | 2013-02-17 | 1 | -2/+2 |
| * | fix parent-memory-clobber in posix_spawn (environ) | Rich Felker | 2012-10-18 | 1 | -3/+10 |
| * | fix various bugs in path and error handling in execvp/fexecve | Rich Felker | 2011-09-29 | 1 | -17/+25 |
| * | initial check-in, version 0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+34 |