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)
downloadopenssh-git-ff8b4959d922ed3a60ea8b7268fa54b2467f8c05.tar.gz
- (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 302034da..da9ea50e 100644
--- a/logintest.c
+++ b/logintest.c
@@ -48,8 +48,13 @@
#include "loginrec.h"
-RCSID("$Id: logintest.c,v 1.7 2001/02/05 12:42:18 stevesk Exp $");
+RCSID("$Id: logintest.c,v 1.8 2001/04/05 23:05:22 stevesk Exp $");
+#ifdef HAVE___PROGNAME
+extern char *__progname;
+#else
+char *__progname;
+#endif
#define PAUSE_BEFORE_LOGOUT 3
@@ -287,6 +292,7 @@ main(int argc, char *argv[])
{
printf("Platform-independent login recording test driver\n");
+ __progname = get_progname(argv[0]);
if (argc == 2) {
if (strncmp(argv[1], "-i", 3) == 0)
compile_opts_only = 1;