summaryrefslogtreecommitdiff
path: root/logintest.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-04-05 23:05:22 +0000
committerKevin Steves <stevesk@pobox.com>2001-04-05 23:05:22 +0000
commitff8b4959d922ed3a60ea8b7268fa54b2467f8c05 (patch)
treed405212d1f9b630b268c9ad9dac326f6a633669c /logintest.c
parent86a52b3dc85f6af2ea2e689b64d52edf796d1f41 (diff)
- (stevesk) logintest.c: fix for systems without __progname
Diffstat (limited to 'logintest.c')
-rw-r--r--logintest.c8
1 files changed, 7 insertions, 1 deletions
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
51RCSID("$Id: logintest.c,v 1.7 2001/02/05 12:42:18 stevesk Exp $"); 51RCSID("$Id: logintest.c,v 1.8 2001/04/05 23:05:22 stevesk Exp $");
52 52
53#ifdef HAVE___PROGNAME
54extern char *__progname;
55#else
56char *__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;