summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-02 20:32:46 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-02 20:32:46 +0000
commit2bf56e2dba10e640ad11011c28eb79089443fa92 (patch)
treecd9a1fb7d17d41330764d6a45ffe65ea1442f195 /session.c
parent155b981494967883796473c09cce5060fa26abbd (diff)
- markus@cvs.openbsd.org 2002/03/28 15:34:51
[session.c] do not call record_login twice (for use_privsep)
Diffstat (limited to 'session.c')
-rw-r--r--session.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/session.c b/session.c
index d8ee69ad..3daddbe1 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.132 2002/03/19 10:49:35 markus Exp $");
+RCSID("$OpenBSD: session.c,v 1.133 2002/03/28 15:34:51 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -648,9 +648,11 @@ do_login(Session *s, const char *command)
}
/* Record that there was a login on that tty from the remote host. */
- record_login(pid, s->tty, pw->pw_name, pw->pw_uid,
- get_remote_name_or_ip(utmp_len, options.verify_reverse_mapping),
- (struct sockaddr *)&from);
+ if (!use_privsep)
+ record_login(pid, s->tty, pw->pw_name, pw->pw_uid,
+ get_remote_name_or_ip(utmp_len,
+ options.verify_reverse_mapping),
+ (struct sockaddr *)&from);
#ifdef USE_PAM
/*