From: Michal Ostrowski Date: Fri, 14 Dec 2001 02:52:09 +0000 (+0000) Subject: Correct utmp handling - Robert Davidson X-Git-Tag: ppp-2.4.7~469 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=fecefef95ccdad604afe51f954f1e25861f022e6;p=ppp.git Correct utmp handling - Robert Davidson --- diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 918fa72..caaf3a9 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -2073,9 +2073,6 @@ void logwtmp (const char *line, const char *name, const char *host) while ((utp = getutent()) && (utp->ut_pid != mypid)) /* nothing */; - /* Is this call really necessary? There is another one after the 'put' */ - endutent(); - if (utp) memcpy(&ut, utp, sizeof(ut)); else