[Bug 251409] getprogname(3) does not work for rescue binaries

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 26 21:47:53 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251409

--- Comment #1 from Conrad Meyer <cem at freebsd.org> ---
I think this is due to the __progname logic in
usr.sbin/crunch/crunchgen/crunched_main.c, which takes the name from
AT_EXECPATH, which is derived from vn_fullpath() in do_execve in
sys/kern/kern_exec.c.  vn_fullpath cannot tell hardlink names for the same
inode apart.  The logic in crunched_main.c is wrong for hardlinked binaries, I
think.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list