On Fri, Dec 25, 2009 at 03:39:34PM +0100, Johannes Sixt wrote: > > The only really *important* errno of a failed exec is ENOENT. For this case, > wouldn't it be easier to do the PATH lookup manually in the parent (before > the fork()), and use execv() in the forked child rather than execvp()? In fact there is API for getting all valid commands on $PATH for given command prefix. That would take care of ENOENT and most of EACCESS. But OTOH, its nice to be able to report any error. -Ilari -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html