/*
* 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
//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
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) {