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 d8ee69ad1..3daddbe11 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.132 2002/03/19 10:49:35 markus Exp $"); 36RCSID("$OpenBSD: session.c,v 1.133 2002/03/28 15:34:51 markus Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -648,9 +648,11 @@ do_login(Session *s, const char *command)
648 } 648 }
649 649
650 /* Record that there was a login on that tty from the remote host. */ 650 /* Record that there was a login on that tty from the remote host. */
651 record_login(pid, s->tty, pw->pw_name, pw->pw_uid, 651 if (!use_privsep)
652 get_remote_name_or_ip(utmp_len, options.verify_reverse_mapping), 652 record_login(pid, s->tty, pw->pw_name, pw->pw_uid,
653 (struct sockaddr *)&from); 653 get_remote_name_or_ip(utmp_len,
654 options.verify_reverse_mapping),
655 (struct sockaddr *)&from);
654 656
655#ifdef USE_PAM 657#ifdef USE_PAM
656 /* 658 /*