unzip: -d should create the dir
[oweals/busybox.git] / coreutils / chmod.c
index 80913f542a4e19c257e9bb6de705e8b2c7713676..27e9b6b863ebfeeae8c56c6ae7b92fe125602244 100644 (file)
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 //config:config CHMOD
-//config:      bool "chmod"
+//config:      bool "chmod (5.5 kb)"
 //config:      default y
 //config:      help
-//config:        chmod is used to change the access permission of files.
+//config:      chmod is used to change the access permission of files.
 
 //applet:IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod))
 
@@ -123,8 +123,7 @@ int chmod_main(int argc UNUSED_PARAM, char **argv)
        }
 
        /* Parse options */
-       opt_complementary = "-2";
-       getopt32(argv, ("-"OPT_STR) + 1); /* Reuse string */
+       getopt32(argv, "^" OPT_STR "\0" "-2");
        argv += optind;
 
        /* Restore option-like mode if needed */