diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | logintest.c | 8 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,6 @@ | |||
1 | 20010406 | ||
2 | - (stevesk) logintest.c: fix for systems without __progname | ||
3 | |||
1 | 20010405 | 4 | 20010405 |
2 | - OpenBSD CVS Sync | 5 | - OpenBSD CVS Sync |
3 | - markus@cvs.openbsd.org 2001/04/04 09:48:35 | 6 | - markus@cvs.openbsd.org 2001/04/04 09:48:35 |
@@ -4869,4 +4872,4 @@ | |||
4869 | - Wrote replacements for strlcpy and mkdtemp | 4872 | - Wrote replacements for strlcpy and mkdtemp |
4870 | - Released 1.0pre1 | 4873 | - Released 1.0pre1 |
4871 | 4874 | ||
4872 | $Id: ChangeLog,v 1.1062 2001/04/05 17:15:08 stevesk Exp $ | 4875 | $Id: ChangeLog,v 1.1063 2001/04/05 23:05:22 stevesk Exp $ |
diff --git a/logintest.c b/logintest.c index 302034da0..da9ea50ec 100644 --- a/logintest.c +++ b/logintest.c | |||
@@ -48,8 +48,13 @@ | |||
48 | 48 | ||
49 | #include "loginrec.h" | 49 | #include "loginrec.h" |
50 | 50 | ||
51 | RCSID("$Id: logintest.c,v 1.7 2001/02/05 12:42:18 stevesk Exp $"); | 51 | RCSID("$Id: logintest.c,v 1.8 2001/04/05 23:05:22 stevesk Exp $"); |
52 | 52 | ||
53 | #ifdef HAVE___PROGNAME | ||
54 | extern char *__progname; | ||
55 | #else | ||
56 | char *__progname; | ||
57 | #endif | ||
53 | 58 | ||
54 | #define PAUSE_BEFORE_LOGOUT 3 | 59 | #define PAUSE_BEFORE_LOGOUT 3 |
55 | 60 | ||
@@ -287,6 +292,7 @@ main(int argc, char *argv[]) | |||
287 | { | 292 | { |
288 | printf("Platform-independent login recording test driver\n"); | 293 | printf("Platform-independent login recording test driver\n"); |
289 | 294 | ||
295 | __progname = get_progname(argv[0]); | ||
290 | if (argc == 2) { | 296 | if (argc == 2) { |
291 | if (strncmp(argv[1], "-i", 3) == 0) | 297 | if (strncmp(argv[1], "-i", 3) == 0) |
292 | compile_opts_only = 1; | 298 | compile_opts_only = 1; |