diff -r -U4 ppp-2.4.4/pppd/main.c ppp-2.4.4+logname/pppd/main.c --- ppp-2.4.4/pppd/main.c 2006-06-04 04:52:50.000000000 +0100 +++ ppp-2.4.4+logname/pppd/main.c 2009-11-02 16:40:23.000000000 +0000 @@ -318,8 +318,9 @@ link_stats_valid = 0; new_phase(PHASE_INITIALIZE); script_env = NULL; + progname = *argv; /* Initialize syslog facilities */ reopen_log(); @@ -355,10 +356,8 @@ * Initialize the default channel. */ tty_init(); - progname = *argv; - /* * Parse, in order, the system options file, the user's options file, * and the command line arguments. */ @@ -795,9 +794,9 @@ */ void reopen_log() { - openlog("pppd", LOG_PID | LOG_NDELAY, LOG_PPP); + openlog(progname, LOG_PID | LOG_NDELAY, LOG_PPP); setlogmask(LOG_UPTO(LOG_INFO)); } /*