summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2002-03-23 20:57:27 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2002-03-23 20:57:27 +0000
commitffee67676321d3ec3aa0244450c65612b6ff4db1 (patch)
treeda166c0399a27a3037e7d478c95633091ddd1036 /usr.bin/ssh/sshd.c
parent3da20b9c77f492d866f278ead6ad3906c7b0a5d4 (diff)
setproctitle() after preauth child; ok markus@
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 0ef16630674..88dd5b65b3c 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -42,7 +42,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.237 2002/03/21 21:23:34 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.238 2002/03/23 20:57:26 stevesk Exp $");
#include <openssl/dh.h>
#include <openssl/bn.h>
@@ -579,6 +579,7 @@ privsep_preauth(void)
/* Demote the child */
if (getuid() == 0 || geteuid() == 0)
privsep_preauth_child();
+ setproctitle("%s", "[net]");
}
return (NULL);
}