randomconfig fixes
[oweals/busybox.git] / runit / runsvdir.c
index 84916e92972ff81c568895453a3b57f3e2df7ee4..55dd47e0dc1f7466dd88d2285af39f232e3349fd 100644 (file)
@@ -13,7 +13,7 @@ modification, are permitted provided that the following conditions are met:
    3. The name of the author may not be used to endorse or promote products
       derived from this software without specific prior written permission.
 
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
@@ -28,21 +28,21 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 /* Busyboxed by Denys Vlasenko <vda.linux@googlemail.com> */
 
 //config:config RUNSVDIR
-//config:      bool "runsvdir"
+//config:      bool "runsvdir (6.3 kb)"
 //config:      default y
 //config:      help
-//config:        runsvdir starts a runsv process for each subdirectory, or symlink to
-//config:        a directory, in the services directory dir, up to a limit of 1000
-//config:        subdirectories, and restarts a runsv process if it terminates.
+//config:      runsvdir starts a runsv process for each subdirectory, or symlink to
+//config:      a directory, in the services directory dir, up to a limit of 1000
+//config:      subdirectories, and restarts a runsv process if it terminates.
 //config:
 //config:config FEATURE_RUNSVDIR_LOG
 //config:      bool "Enable scrolling argument log"
 //config:      depends on RUNSVDIR
 //config:      default n
 //config:      help
-//config:        Enable feature where second parameter of runsvdir holds last error
-//config:        message (viewable via top/ps). Otherwise (feature is off
-//config:        or no parameter), error messages go to stderr only.
+//config:      Enable feature where second parameter of runsvdir holds last error
+//config:      message (viewable via top/ps). Otherwise (feature is off
+//config:      or no parameter), error messages go to stderr only.
 
 //applet:IF_RUNSVDIR(APPLET(runsvdir, BB_DIR_USR_BIN, BB_SUID_DROP))
 
@@ -248,10 +248,9 @@ int runsvdir_main(int argc UNUSED_PARAM, char **argv)
 
        INIT_G();
 
-       opt_complementary = "-1";
        opt_s_argv[0] = NULL;
        opt_s_argv[2] = NULL;
-       getopt32(argv, "Ps:", &opt_s_argv[0]);
+       getopt32(argv, "^" "Ps:" "\0" "-1", &opt_s_argv[0]);
        argv += optind;
 
        i_am_init = (getpid() == 1);