svn commit: trunk/busybox: debianutils include

vda at busybox.net vda at busybox.net
Sun Jun 8 20:40:33 UTC 2008


Author: vda
Date: 2008-06-08 13:40:33 -0700 (Sun, 08 Jun 2008)
New Revision: 22272

Log:
mktemp: make default tempfile template shorter;
 make help text more understandable



Modified:
   trunk/busybox/debianutils/mktemp.c
   trunk/busybox/include/usage.h


Changeset:
Modified: trunk/busybox/debianutils/mktemp.c
===================================================================
--- trunk/busybox/debianutils/mktemp.c	2008-06-08 20:38:53 UTC (rev 22271)
+++ trunk/busybox/debianutils/mktemp.c	2008-06-08 20:40:33 UTC (rev 22272)
@@ -43,7 +43,7 @@
 
 	opt_complementary = "?1"; /* 1 argument max */
 	opt = getopt32(argv, "dqtp:", &path);
-	chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXXXXXX");
+	chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX");
 
 	if (opt & (4|8)) { /* -t and/or -p */
 		const char *dir = getenv("TMPDIR");

Modified: trunk/busybox/include/usage.h
===================================================================
--- trunk/busybox/include/usage.h	2008-06-08 20:38:53 UTC (rev 22271)
+++ trunk/busybox/include/usage.h	2008-06-08 20:40:33 UTC (rev 22272)
@@ -2545,7 +2545,7 @@
        "[-dt] [-p DIR] [TEMPLATE]"
 #define mktemp_full_usage "\n\n" \
        "Create a temporary file with name based on TEMPLATE and print its name.\n" \
-       "TEMPLATE must end with XXXXXX (i.e., /tmp/temp.XXXXXX).\n" \
+       "TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).\n" \
      "\nOptions:" \
      "\n	-d	Make a directory instead of a file" \
 /*   "\n	-q	Fail silently if an error occurs" - we ignore it */ \




More information about the busybox-cvs mailing list