Restarting with kill -HUP
Han Holl
han.holl at prismant.nl
Mon Feb 19 21:14:40 EST 2001
Hi,
If sshd is started with 'sshd', restarting with kill -HUP
will fail.
I've included the most obvious patch, but making sure
that the full pathname is in saved_argv[0] just might be
more secure.
Cheers,
Han Holl
--- sshd.c.orig Mon Feb 19 10:55:54 2001
+++ sshd.c Mon Feb 19 10:56:15 2001
@@ -208,7 +208,7 @@
{
log("Received SIGHUP; restarting.");
close_listen_socks();
- execv(saved_argv[0], saved_argv);
+ execvp(saved_argv[0], saved_argv);
log("RESTART FAILED: av0='%s', error: %s.", av0, strerror(errno));
exit(1);
}
More information about the openssh-unix-dev
mailing list