aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1996-12-31 01:17:07 +0000
committerMike Smith <msmith@FreeBSD.org>1996-12-31 01:17:07 +0000
commit8c0e9645abdf0121a51cf324016feb5c6acfb1e6 (patch)
treef1235b7cb5d02a0938218f2855d26e4d577e0a6d /usr.sbin
parent87a16f44fadea365127422aad890353a74c7a2af (diff)
downloadsrc-8c0e9645abdf0121a51cf324016feb5c6acfb1e6.tar.gz
src-8c0e9645abdf0121a51cf324016feb5c6acfb1e6.zip
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>
Notes
Notes: svn path=/head/; revision=21119
Diffstat (limited to 'usr.sbin')
-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 618c7534a6cc..46b2b2e4484a 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));