diff options
author | brian <brian@cvs.openbsd.org> | 1998-02-19 02:02:49 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-02-19 02:02:49 +0000 |
commit | d332f862fb215a6e064d9e592ec7fdb8e86fed75 (patch) | |
tree | 59374ff9fd96846f26c1ee7d913756a3ba20c550 /usr.sbin/ppp/modem.c | |
parent | fe45f4eaf0aae1c586a086a6a83484cb7aad7b27 (diff) |
Allow 8 character login names.
Pointed out by: Forgotten
Do the login()/logwtmp()/logout() as id 0.
Diffstat (limited to 'usr.sbin/ppp/modem.c')
-rw-r--r-- | usr.sbin/ppp/modem.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 428ab13cc87..62db126d5f5 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.11 1998/01/29 00:35:34 brian Exp $ + * $Id: modem.c,v 1.12 1998/02/19 02:02:47 brian Exp $ * * TODO: */ @@ -738,18 +738,11 @@ CloseLogicalModem(void) { LogPrintf(LogDEBUG, "CloseLogicalModem\n"); if (modem >= 0) { - ClosePhysicalModem(); if (Utmp) { - struct utmp ut; - strncpy(ut.ut_line, VarBaseDevice, sizeof ut.ut_line - 1); - ut.ut_line[sizeof ut.ut_line - 1] = '\0'; - if (logout(ut.ut_line)) - logwtmp(ut.ut_line, "", ""); - else - LogPrintf(LogERROR, "CloseLogicalModem: No longer logged in on %s\n", - ut.ut_line); + ID0logout(VarBaseDevice); Utmp = 0; } + ClosePhysicalModem(); UnlockModem(); } } |