1 /* vi: set sw=4 ts=4: */
3 * Mini mktemp implementation for busybox
6 * Copyright (C) 2000 by Daniel Jacobowitz
7 * Written by Daniel Jacobowitz <dan@debian.org>
9 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
19 extern int mktemp_main(int argc, char **argv)
21 unsigned long flags = bb_getopt_ulflags(argc, argv, "dq");
23 if (optind + 1 != argc)
27 if (mkdtemp(argv[optind]) == NULL)
31 if (mkstemp(argv[optind]) < 0)