2
0
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:
Todd C. Miller
2011-08-29 14:51:12 -04:00
parent 3e0e0fc385
commit f478f84066
3 changed files with 12 additions and 0 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();