diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-08 20:40:33 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-08 20:40:33 +0000 |
| commit | f2cccbce37022a95c83424006525e98440dc7fc4 (patch) | |
| tree | 5923e369d07b895221350e1789324139e5fbd62d | |
| parent | b8c9354114f589920d9321e08d138c96ebf77f9d (diff) | |
| download | busybox-w32-f2cccbce37022a95c83424006525e98440dc7fc4.tar.gz busybox-w32-f2cccbce37022a95c83424006525e98440dc7fc4.tar.bz2 busybox-w32-f2cccbce37022a95c83424006525e98440dc7fc4.zip | |
mktemp: make default tempfile template shorter;
make help text more understandable
| -rw-r--r-- | debianutils/mktemp.c | 2 | ||||
| -rw-r--r-- | include/usage.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/debianutils/mktemp.c b/debianutils/mktemp.c index de27d3023..c48b6e2d5 100644 --- a/debianutils/mktemp.c +++ b/debianutils/mktemp.c | |||
| @@ -43,7 +43,7 @@ int mktemp_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
| 43 | 43 | ||
| 44 | opt_complementary = "?1"; /* 1 argument max */ | 44 | opt_complementary = "?1"; /* 1 argument max */ |
| 45 | opt = getopt32(argv, "dqtp:", &path); | 45 | opt = getopt32(argv, "dqtp:", &path); |
| 46 | chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXXXXXX"); | 46 | chp = argv[optind] ? argv[optind] : xstrdup("tmp.XXXXXX"); |
| 47 | 47 | ||
| 48 | if (opt & (4|8)) { /* -t and/or -p */ | 48 | if (opt & (4|8)) { /* -t and/or -p */ |
| 49 | const char *dir = getenv("TMPDIR"); | 49 | const char *dir = getenv("TMPDIR"); |
diff --git a/include/usage.h b/include/usage.h index 44e618222..3eb5b4867 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -2545,7 +2545,7 @@ | |||
| 2545 | "[-dt] [-p DIR] [TEMPLATE]" | 2545 | "[-dt] [-p DIR] [TEMPLATE]" |
| 2546 | #define mktemp_full_usage "\n\n" \ | 2546 | #define mktemp_full_usage "\n\n" \ |
| 2547 | "Create a temporary file with name based on TEMPLATE and print its name.\n" \ | 2547 | "Create a temporary file with name based on TEMPLATE and print its name.\n" \ |
| 2548 | "TEMPLATE must end with XXXXXX (i.e., /tmp/temp.XXXXXX).\n" \ | 2548 | "TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX).\n" \ |
| 2549 | "\nOptions:" \ | 2549 | "\nOptions:" \ |
| 2550 | "\n -d Make a directory instead of a file" \ | 2550 | "\n -d Make a directory instead of a file" \ |
| 2551 | /* "\n -q Fail silently if an error occurs" - we ignore it */ \ | 2551 | /* "\n -q Fail silently if an error occurs" - we ignore it */ \ |
