2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Better error message about invalid -C argument

This commit is contained in:
Todd C. Miller
2011-03-22 10:19:32 -04:00
parent 48d67f0df2
commit 71fa43ec47

View File

@@ -177,7 +177,7 @@ parse_args(int argc, char **argv, int *nargc, char ***nargv, char ***settingsp,
break;
case 'C':
if (atoi(optarg) < 3) {
warningx("the argument to -C must be at least 3");
warningx("the argument to -C must be a number greater than or equal to 3");
usage(1);
}
sudo_settings[ARG_CLOSEFROM].value = optarg;