diff -ur acct-6.3.2~/ac.c acct-6.3.2/ac.c --- acct-6.3.2~/ac.c Tue Oct 14 04:28:36 1997 +++ acct-6.3.2/ac.c Sun Jan 20 23:09:19 2002 @@ -175,7 +175,7 @@ int other_wtmp_file_specified = 0; /* nonzero if the user used the `-f' or `--other-file' flags */ - program_name = argv[0]; + program_name = __progname; /* Init the utmp reader for reading forwards in the files. */ diff -ur acct-6.3.2~/accton.c acct-6.3.2/accton.c --- acct-6.3.2~/accton.c Tue Oct 14 04:28:36 1997 +++ acct-6.3.2/accton.c Sun Jan 20 23:09:26 2002 @@ -63,7 +63,7 @@ int c; char *acct_file = NULL; - program_name = argv[0]; + program_name = __progname; while (1) { diff -ur acct-6.3.2~/common.h acct-6.3.2/common.h --- acct-6.3.2~/common.h Tue Oct 14 04:32:50 1997 +++ acct-6.3.2/common.h Sun Jan 20 23:07:27 2002 @@ -56,4 +56,6 @@ void print_acct_file_location PARAMS((void)); void print_acct_file_locations PARAMS((void)); +extern const char *__progname; + #endif /* COMMON_H */ diff -ur acct-6.3.2~/dump-acct.c acct-6.3.2/dump-acct.c --- acct-6.3.2~/dump-acct.c Tue Oct 14 04:28:36 1997 +++ acct-6.3.2/dump-acct.c Sun Jan 20 23:09:32 2002 @@ -41,7 +41,7 @@ long num_lines_to_print = -1; /* -1 means all */ int raw = 0; - program_name = argv[0]; + program_name = __progname; while (1) { diff -ur acct-6.3.2~/dump-utmp.c acct-6.3.2/dump-utmp.c --- acct-6.3.2~/dump-utmp.c Tue Oct 14 04:28:36 1997 +++ acct-6.3.2/dump-utmp.c Sun Jan 20 23:09:04 2002 @@ -41,7 +41,7 @@ long num_lines_to_print = -1; /* -1 means all */ int raw = 0; - program_name = argv[0]; + program_name = __progname; while (1) { diff -ur acct-6.3.2~/last.c acct-6.3.2/last.c --- acct-6.3.2~/last.c Tue Oct 14 04:28:36 1997 +++ acct-6.3.2/last.c Sun Jan 20 23:09:15 2002 @@ -167,7 +167,7 @@ int other_wtmp_file_specified = 0; /* nonzero if the user used the `-f' or `--file' flags */ - program_name = argv[0]; + program_name = __progname; /* Tell the utmp reader that we want to do things backwards! */ diff -ur acct-6.3.2~/lastcomm.c acct-6.3.2/lastcomm.c --- acct-6.3.2~/lastcomm.c Tue Oct 14 04:28:36 1997 +++ acct-6.3.2/lastcomm.c Sun Jan 20 23:09:35 2002 @@ -92,7 +92,7 @@ int other_pacct_file_specified = 0; /* nonzero if the user used the `-f' or `--file' flag */ - program_name = argv[0]; + program_name = __progname; /* Tell the pacct reader that we want to do things backwards! */ diff -ur acct-6.3.2~/sa.c acct-6.3.2/sa.c --- acct-6.3.2~/sa.c Tue Mar 10 20:54:28 1998 +++ acct-6.3.2/sa.c Sun Jan 20 23:09:23 2002 @@ -266,7 +266,7 @@ { int c; - program_name = argv[0]; + program_name = __progname; /* Cache the page size of the machine for the PAGES_TO_KB macro */ system_page_size = (double) getpagesize () / 1024.0;