mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Add calls to setprogname() for test programs.
This commit is contained in:
@@ -105,6 +105,10 @@ main(int argc, char *argv[])
|
||||
int errors = 0;
|
||||
int tests = 0;
|
||||
|
||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||
setprogname(argc > 0 ? argv[0] : "check_iolog_path");
|
||||
#endif
|
||||
|
||||
if (argc != 2)
|
||||
usage();
|
||||
|
||||
|
@@ -56,6 +56,10 @@ main(int argc, char *argv[])
|
||||
char *cp, *dash, *line, lines[2][2048];
|
||||
int which = 0;
|
||||
|
||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||
setprogname(argc > 0 ? argv[0] : "check_wrap");
|
||||
#endif
|
||||
|
||||
if (argc != 2)
|
||||
usage();
|
||||
|
||||
|
@@ -92,6 +92,10 @@ main(int argc, char *argv[])
|
||||
size_t len;
|
||||
FILE *fp;
|
||||
|
||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||
setprogname(argc > 0 ? argv[0] : "check_addr");
|
||||
#endif
|
||||
|
||||
if (argc != 2)
|
||||
usage();
|
||||
|
||||
|
Reference in New Issue
Block a user