claenups for previous commit
[oweals/busybox.git] / coreutils / mktemp.c
index 3e35befeb433cb5c515920914e4e47944e0ade6d..c041fedf7c678b848ba4c9466d4016ad26122e88 100644 (file)
@@ -2,13 +2,11 @@
 /*
  * Mini mktemp implementation for busybox
  *
- *
  * Copyright (C) 2000 by Daniel Jacobowitz
  * Written by Daniel Jacobowitz <dan@debian.org>
  *
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
-
 /* Coreutils 6.12 man page says:
  *        mktemp [OPTION]... [TEMPLATE]
  * Create a temporary file or directory, safely, and print its name. If
@@ -34,9 +32,9 @@
 //config:      bool "mktemp (4 kb)"
 //config:      default y
 //config:      help
-//config:        mktemp is used to create unique temporary files
+//config:      mktemp is used to create unique temporary files
 
-//applet:IF_MKTEMP(APPLET(mktemp, BB_DIR_BIN, BB_SUID_DROP))
+//applet:IF_MKTEMP(APPLET_NOEXEC(mktemp, mktemp, BB_DIR_BIN, BB_SUID_DROP, mktemp))
 
 //kbuild:lib-$(CONFIG_MKTEMP) += mktemp.o
 
@@ -80,8 +78,7 @@ int mktemp_main(int argc UNUSED_PARAM, char **argv)
        if (!path || path[0] == '\0')
                path = "/tmp";
 
-       opt_complementary = "?1"; /* 1 argument max */
-       opts = getopt32(argv, "dqtp:u", &path);
+       opts = getopt32(argv, "^" "dqtp:u" "\0" "?1"/*1 arg max*/, &path);
 
        chp = argv[optind];
        if (!chp) {