This commit is contained in:
Todd C. Miller
2005-01-18 00:41:31 +00:00
parent 2e8e963460
commit 840d51a160
4 changed files with 5 additions and 5 deletions

View File

@@ -257,7 +257,7 @@ struct sudo_defs_types sudo_defs_table[] = {
NULL,
}, {
"closefrom_override", T_FLAG,
"If set, users may override the value of `closefrom' with the -O option",
"If set, users may override the value of `closefrom' with the -C option",
NULL,
}, {
"env_check", T_LIST|T_BOOL,

View File

@@ -190,7 +190,7 @@ closefrom
"File descriptors >= %d will be closed before executing a command"
closefrom_override
T_FLAG
"If set, users may override the value of `closefrom' with the -O option"
"If set, users may override the value of `closefrom' with the -C option"
env_check
T_LIST|T_BOOL
"Environment variables to check for sanity:"

4
sudo.c
View File

@@ -284,7 +284,7 @@ main(argc, argv, envp)
/* Check for -C overriding def_closefrom. */
if (user_closefrom >= 0 && user_closefrom != def_closefrom) {
if (!def_closefrom_override)
errorx(1, "you are not permitted to use the -O option");
errorx(1, "you are not permitted to use the -C option");
else
def_closefrom = user_closefrom;
}
@@ -768,7 +768,7 @@ parse_args(argc, argv)
if (NewArgv[1] == NULL)
usage(1);
if ((user_closefrom = atoi(NewArgv[1])) < 3) {
warningx("the argument to -O must be at least 3");
warningx("the argument to -C must be at least 3");
usage(1);
}
NewArgc--;

View File

@@ -479,7 +479,7 @@ section. This flag is I<off> by default.
=item closefrom_override
If set, the user may use B<sudo>'s B<-O> option which
If set, the user may use B<sudo>'s B<-C> option which
overrides the default starting point at which B<sudo> begins
closing open file descriptors. This flag is I<off> by default.