claenups for previous commit
[oweals/busybox.git] / coreutils / mktemp.c
index bfef0b4a6aed94bfdd3be0d8a15557d3a72aef13..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
@@ -36,7 +34,7 @@
 //config:      help
 //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) {