summaryrefslogtreecommitdiff
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
parent155b981494967883796473c09cce5060fa26abbd (diff)
- markus@cvs.openbsd.org 2002/03/28 15:34:51
[session.c] do not call record_login twice (for use_privsep)
-rw-r--r--ChangeLog5
-rw-r--r--session.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index ec5b98c8a..d2c0a2d0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,9 @@
7 - markus@cvs.openbsd.org 2002/03/27 22:21:45 7 - markus@cvs.openbsd.org 2002/03/27 22:21:45
8 [ssh-keygen.c] 8 [ssh-keygen.c]
9 try to import keys with extra trailing === (seen with ssh.com < 2.0.12) 9 try to import keys with extra trailing === (seen with ssh.com < 2.0.12)
10 - markus@cvs.openbsd.org 2002/03/28 15:34:51
11 [session.c]
12 do not call record_login twice (for use_privsep)
10 13
1120020401 1420020401
12 - (stevesk) [monitor.c] PAM should work again; will *not* work with 15 - (stevesk) [monitor.c] PAM should work again; will *not* work with
@@ -8114,4 +8117,4 @@
8114 - Wrote replacements for strlcpy and mkdtemp 8117 - Wrote replacements for strlcpy and mkdtemp
8115 - Released 1.0pre1 8118 - Released 1.0pre1
8116 8119
8117$Id: ChangeLog,v 1.2008 2002/04/02 20:26:26 mouring Exp $ 8120$Id: ChangeLog,v 1.2009 2002/04/02 20:32:46 mouring Exp $
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 /*