]> git.ozlabs.org Git - ppp.git/commitdiff
Give the interface name rather than the name of the remote machine
authorPaul Mackerras <paulus@samba.org>
Thu, 12 Sep 2002 22:38:47 +0000 (22:38 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 12 Sep 2002 22:38:47 +0000 (22:38 +0000)
as the 3rd argument to logwtmp.

pppd/auth.c

index 76fc8210388e8431c227806471fd3f52b3046a85..ec4057da9a0919af954cef6a1f2042b2fce857d4 100644 (file)
@@ -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 <stdio.h>
 #include <stddef.h>
@@ -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) {