diff options
author | brian <brian@FreeBSD.org> | 1998-02-19 02:10:13 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-02-19 02:10:13 +0000 |
commit | 5b9c68270e4cd9c5f15391f1690bab700d14d3c6 (patch) | |
tree | 79cdbf4ab50c51835cc0f9372fe5b2c4e08750de /usr.sbin/ppp/pap.c | |
parent | 7a0499eae564b147d6bd8e5703bdce285e56e446 (diff) | |
download | FreeBSD-src-5b9c68270e4cd9c5f15391f1690bab700d14d3c6.zip FreeBSD-src-5b9c68270e4cd9c5f15391f1690bab700d14d3c6.tar.gz |
MFMP: Allow 8 character login names.
Do the login()/logwtmp()/logout() as id 0.
Diffstat (limited to 'usr.sbin/ppp/pap.c')
-rw-r--r-- | usr.sbin/ppp/pap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ppp/pap.c b/usr.sbin/ppp/pap.c index ac2c763..2a320ac 100644 --- a/usr.sbin/ppp/pap.c +++ b/usr.sbin/ppp/pap.c @@ -18,7 +18,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: pap.c,v 1.19 1997/11/22 03:37:43 brian Exp $ + * $Id: pap.c,v 1.20 1997/12/24 09:29:11 brian Exp $ * * TODO: */ @@ -51,6 +51,7 @@ #include "lcpproto.h" #include "phase.h" #include "auth.h" +#include "id.h" static const char *papcodes[] = { "???", "REQUEST", "ACK", "NAK" }; @@ -173,11 +174,9 @@ PapInput(struct mbuf * bp) struct utmp ut; memset(&ut, 0, sizeof ut); time(&ut.ut_time); - strncpy(ut.ut_name, cp+1, sizeof ut.ut_name - 1); + strncpy(ut.ut_name, cp+1, sizeof ut.ut_name); strncpy(ut.ut_line, VarBaseDevice, sizeof ut.ut_line - 1); - if (logout(ut.ut_line)) - logwtmp(ut.ut_line, "", ""); - login(&ut); + ID0login(&ut); Utmp = 1; } NewPhase(PHASE_NETWORK); |