From fe9e10d4f4aaefba744478ddb1be896d47d9ade8 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Thu, 12 Sep 2002 22:38:47 +0000 Subject: [PATCH] Give the interface name rather than the name of the remote machine as the 3rd argument to logwtmp. --- pppd/auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pppd/auth.c b/pppd/auth.c index 76fc821..ec4057d 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -32,7 +32,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: auth.c,v 1.81 2002/09/01 12:00:15 dfs Exp $" +#define RCSID "$Id: auth.c,v 1.82 2002/09/12 22:38:47 paulus Exp $" #include #include @@ -1358,7 +1358,7 @@ plogin(user, passwd, msg) tty = devnam; if (strncmp(tty, "/dev/", 5) == 0) tty += 5; - logwtmp(tty, user, remote_name); /* Add wtmp login entry */ + logwtmp(tty, user, ifname); /* Add wtmp login entry */ #if defined(_PATH_LASTLOG) && !defined(USE_PAM) if (pw != (struct passwd *)NULL) { -- 2.39.2