diff -Naur ppp.orig/pppd/main.c ppp/pppd/main.c
--- ppp.orig/pppd/main.c	2004-11-13 13:05:48.000000000 +0100
+++ ppp/pppd/main.c	2005-10-04 14:43:31.000000000 +0200
@@ -90,6 +90,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <libgen.h>
 
 #include "pppd.h"
 #include "magic.h"
@@ -355,7 +356,8 @@
      */
     tty_init();
 
-    progname = *argv;
+    progname = strdup(*argv);
+    strcpy(progname, basename(progname));
 
     /*
      * Parse, in order, the system options file, the user's options file,
@@ -591,6 +593,7 @@
 	}
     }
 
+    free(progname);
     die(status);
     return 0;
 }
@@ -792,7 +795,7 @@
 void
 reopen_log()
 {
-    openlog("pppd", LOG_PID | LOG_NDELAY, LOG_PPP);
+    openlog(progname, LOG_PID | LOG_NDELAY, LOG_PPP);
     setlogmask(LOG_UPTO(LOG_INFO));
 }
 

