The Solaris posix_spawnp() system call implementation does has an action to
change chdir and it will actually search the PATH in the kernel.

While the kernel has the ability the execute the file actions after the 
exec as we are still in control, the native syscall posix_spawn 
implementation uses the exact order as a libc implementation is forced to 
obey.

The PATH being searched is not necessarily the same PATH in the child 
process but that of the parent.

Casper

Reply via email to