Allow the plugin to determine whether or not an empty timeout is

allowed.  For sudoers, an error will be returned for an empty timeout.
This commit is contained in:
Todd C. Miller
2017-12-11 09:20:41 -07:00
parent b5463c2809
commit 5106bfc139
2 changed files with 1 additions and 3 deletions

View File

@@ -428,8 +428,7 @@ parse_args(int argc, char **argv, int *nargc, char ***nargv,
break;
#endif
case 'T':
if (*optarg == '\0')
usage(1);
/* Plugin determines whether empty timeout is allowed. */
sudo_settings[ARG_TIMEOUT].value = optarg;
break;
case 'S':