CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/09/17 13:45:07

Modified files:
        lib/libc/gen   : getexecpath.3 
        sys/kern       : exec_script.c kern_exec.c 
        sys/sys        : exec.h 

Log message:
Make getexecpath() return the ELF executable that is running, move the
realpath calculation into check_exec, so it can be done for a script and
the ELF executable it runs. This means for a script run via a shebang
line getexecpath() should return the canonicalised executable path.

(The "should" doesn't change from what's documented in the manpage,
someone could use a relative shebang in either an unlinked directory or
one with a long name.)

ok deraadt@

Reply via email to