mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Fix typo in ternary operator usage.
This commit is contained in:
parent
9425527982
commit
be3b7d615a
@ -211,7 +211,7 @@ main(int argc, char *argv[])
|
|||||||
ssize_t nwritten;
|
ssize_t nwritten;
|
||||||
|
|
||||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||||
setprogname(argc > 0 argv[0] ? "sudoreplay");
|
setprogname(argc > 0 ? argv[0] : "sudoreplay");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "d:lm:s:V")) != -1) {
|
while ((ch = getopt(argc, argv, "d:lm:s:V")) != -1) {
|
||||||
|
@ -138,7 +138,7 @@ main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||||
setprogname(argc > 0 argv[0] ? "testsudoers");
|
setprogname(argc > 0 ? argv[0] : "testsudoers");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
dflag = 0;
|
dflag = 0;
|
||||||
|
@ -153,7 +153,7 @@ main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||||
setprogname(argc > 0 argv[0] ? "visudo");
|
setprogname(argc > 0 ? argv[0] : "visudo");
|
||||||
#endif
|
#endif
|
||||||
if (argc < 1)
|
if (argc < 1)
|
||||||
usage();
|
usage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user