From f2cccbce37022a95c83424006525e98440dc7fc4 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 8 Jun 2008 20:40:33 +0000 Subject: mktemp: make default tempfile template shorter; make help text more understandable --- debianutils/mktemp.c | 2 +- include/usage.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c index de27d30..c48b6e2 100644 --- a/debianutils/mktemp.c +++ b/debianutils/mktemp.c @@ -43,7 +43,7 @@ int mktemp_main(int argc ATTRIBUTE_UNUSED, char **argv) 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"); diff --git a/include/usage.h b/include/usage.h index 44e6182..3eb5b48 100644 --- a/include/usage.h +++ b/include/usage.h @@ -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 */ \ -- cgit v1.1