Date: Tue, 26 Aug 2008 10:53:32 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/sys execve.2 src/sys/kern imgact_shell.c Message-ID: <200808261057.m7QAv8Tm026907@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808261057.m7QAv8Tm026907>