cvs commit: src/lib/libc/sys execve.2 src/sys/kern imgact_shell.c
Konstantin Belousov
kib at FreeBSD.org
Tue Aug 26 10:57:08 UTC 2008
kib 2008-08-26 10:53:32 UTC
FreeBSD src repository
Modified files:
lib/libc/sys execve.2
sys/kern imgact_shell.c
Log:
SVN rev 182191 on 2008-08-26 10:53:32Z by kib
When calculating arguments to the interpreter for the shebang script
executed by fexecve(2), imgp->args->fname is NULL. Moreover, there is
no way to recover the path to the script being executed.
Do what some other U*ixes do unconditionally, namely supply /dev/fd/n
as the script path when called from fexecve(). Document requirement of
having fdescfs mounted as caveat.
Revision Changes Path
1.42 +18 -1 src/lib/libc/sys/execve.2
1.36 +22 -5 src/sys/kern/imgact_shell.c
More information about the cvs-src
mailing list