summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1996-12-31 01:17:07 +0000
committermsmith <msmith@FreeBSD.org>1996-12-31 01:17:07 +0000
commit052fd9ee5f2f4522b9f5817808e5ee7afb52b13b (patch)
treef1235b7cb5d02a0938218f2855d26e4d577e0a6d /usr.sbin/pppd
parent6b0fa0c228cdd348ad2653d5f00a42b2ab20a23f (diff)
downloadFreeBSD-src-052fd9ee5f2f4522b9f5817808e5ee7afb52b13b.zip
FreeBSD-src-052fd9ee5f2f4522b9f5817808e5ee7afb52b13b.tar.gz
Cosmetic fix for pppd; login() updates both utmp and wtmp, so don't
call logwtmp() again ourselves. This avoids 'last' showing duplicate logins. Submitted by: Daniel O'Callaghan <danny@hilink.com.au>
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/auth.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c
index 618c753..46b2b2e 100644
--- a/usr.sbin/pppd/auth.c
+++ b/usr.sbin/pppd/auth.c
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: auth.c,v 1.7 1996/10/01 03:41:28 pst Exp $";
+static char rcsid[] = "$Id: auth.c,v 1.8 1996/11/13 01:33:10 pst Exp $";
#endif
#include <stdio.h>
@@ -524,10 +524,9 @@ ppplogin(user, passwd, msg, msglen)
if (strncmp(tty, "/dev/", 5) == 0)
tty += 5;
- logwtmp(tty, user, ":PPP"); /* Add wtmp login entry */
logged_in = TRUE;
- /* Log in utmp too */
+ /* Log in wtmp and utmp using login() */
memset((void *)&utmp, 0, sizeof(utmp));
(void)time(&utmp.ut_time);
(void)strncpy(utmp.ut_name, user, sizeof(utmp.ut_name));
OpenPOWER on IntegriCloud