History log of /seL4-test-master/projects/musllibc/src/process/execvp.c
Revision Date Author Comments
# 14a01171 02-Feb-2015 Rich Felker <dalias@aerifal.cx>

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.


# 164c5c7a 18-Apr-2014 M Farkas-Dyck <strake888@gmail.com>

expose public execvpe interface


# 23ccb80f 17-Feb-2013 Rich Felker <dalias@aerifal.cx>

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.


# 97c8bdd8 18-Oct-2012 Rich Felker <dalias@aerifal.cx>

fix parent-memory-clobber in posix_spawn (environ)


# 4b877369 28-Sep-2011 Rich Felker <dalias@aerifal.cx>

fix various bugs in path and error handling in execvp/fexecve


# 0b44a031 11-Feb-2011 Rich Felker <dalias@aerifal.cx>

initial check-in, version 0.5.0