CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/09/06 12:36:24

Modified files:
        usr.bin/ssh    : sshd.c 

Log message:
Use getexecpath(3); if it fails use argv[0] as before with the pre-existing
code to validate it is an absolute path.  Here's a bit of history:  sshd
became the first fork+exec privsep daemon (I did some arm-twisting).
That privsep has recently turned into fork+exec different binaries but
the SIGHUP restart code still want to re-run the binary from the original path.
The rc startup sequence always passes an absolute path.  sshd was paranoid
and validated it.  That made hand-restarts of sshd without absolute paths
not work.  getexecpath(3) improves the ergonomics.
ok djm

Reply via email to