]> granicus.if.org Git - sudo/commitdiff
s/-O/-C/
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 18 Jan 2005 00:41:31 +0000 (00:41 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 18 Jan 2005 00:41:31 +0000 (00:41 +0000)
def_data.c
def_data.in
sudo.c
sudoers.pod

index 99e4fbc0dfb9fcdcd8ab0799cc32bccf81f1b475..a4d9520b2b3de88ff428ee6559c4c6b5b6a7e7ca 100644 (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,
index 7806ba662909487647a0599ba764bc44e15a2460..7396cdfd35be43335d7f27792250e4124502868d 100644 (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:"
diff --git a/sudo.c b/sudo.c
index bc4ee70e8558f59b2b0589b5e4a93e3ebc0ab4b5..6a930a2ed8c94733184be147126d017a39204c24 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -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--;
index 7724edfdf64fe067908e819c75ab830805e47346..44849316e3ff8152d9644411930cc0d3f9d2b89a 100644 (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.