From 6d6b73fcc1ed1fbea8e5b101a078ef2894fd5c1b Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 25 Oct 1999 13:31:42 +0000 Subject: Don't (unnecessarily) parse wtmp, force ID0logout() to DTRT instead. --- usr.sbin/ppp/id.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp/id.c') diff --git a/usr.sbin/ppp/id.c b/usr.sbin/ppp/id.c index 79dec72..3ca74c6 100644 --- a/usr.sbin/ppp/id.c +++ b/usr.sbin/ppp/id.c @@ -214,7 +214,7 @@ ID0login(struct utmp *ut) } void -ID0logout(const char *device) +ID0logout(const char *device, int nologout) { struct utmp ut; @@ -222,7 +222,7 @@ ID0logout(const char *device) ut.ut_line[sizeof ut.ut_line - 1] = '\0'; ID0set0(); - if (logout(ut.ut_line)) { + if (nologout || logout(ut.ut_line)) { log_Printf(LogID0, "logout(\"%s\")\n", ut.ut_line); logwtmp(ut.ut_line, "", ""); log_Printf(LogID0, "logwtmp(\"%s\", \"\", \"\")\n", ut.ut_line); -- cgit v1.1