Date: Thu, 26 Nov 2020 21:47:53 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251409] getprogname(3) does not work for rescue binaries Message-ID: <bug-251409-227-6JUGJOFk9m@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-251409-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251409 --- Comment #1 from Conrad Meyer <cem@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251409-227-6JUGJOFk9m>
