- (stevesk) logintest.c: fix for systems without __progname

This commit is contained in:
Kevin Steves 2001-04-05 23:05:22 +00:00
parent 86a52b3dc8
commit ff8b4959d9
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,6 @@
20010406
- (stevesk) logintest.c: fix for systems without __progname
20010405 20010405
- OpenBSD CVS Sync - OpenBSD CVS Sync
- markus@cvs.openbsd.org 2001/04/04 09:48:35 - markus@cvs.openbsd.org 2001/04/04 09:48:35
@ -4869,4 +4872,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.1062 2001/04/05 17:15:08 stevesk Exp $ $Id: ChangeLog,v 1.1063 2001/04/05 23:05:22 stevesk Exp $

View File

@ -48,8 +48,13 @@
#include "loginrec.h" #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 #define PAUSE_BEFORE_LOGOUT 3
@ -287,6 +292,7 @@ main(int argc, char *argv[])
{ {
printf("Platform-independent login recording test driver\n"); printf("Platform-independent login recording test driver\n");
__progname = get_progname(argv[0]);
if (argc == 2) { if (argc == 2) {
if (strncmp(argv[1], "-i", 3) == 0) if (strncmp(argv[1], "-i", 3) == 0)
compile_opts_only = 1; compile_opts_only = 1;