[sshd.c]
     setproctitle() after preauth child; ok markus@
This commit is contained in:
Ben Lindstrom 2002-03-26 01:53:03 +00:00
parent 6205a18f55
commit f90f58d846
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,10 @@
20020325
- (stevesk) import OpenBSD <sys/tree.h> as "openbsd-compat/tree.h"
- (bal) OpenBSD CVS Sync
- stevesk@cvs.openbsd.org 2002/03/23 20:57:26
[sshd.c]
setproctitle() after preauth child; ok markus@
20020324
- (stevesk) [session.c] disable LOGIN_NEEDS_TERM until we are sure
@ -8014,4 +8019,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.1977 2002/03/26 00:12:49 stevesk Exp $
$Id: ChangeLog,v 1.1978 2002/03/26 01:53:03 mouring Exp $

3
sshd.c
View File

@ -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>
@ -588,6 +588,7 @@ privsep_preauth(void)
/* Demote the child */
if (getuid() == 0 || geteuid() == 0)
privsep_preauth_child();
setproctitle("%s", "[net]");
}
return (NULL);
}