summaryrefslogtreecommitdiffstats
path: root/usr.bin/mktemp
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2000-10-15 11:35:48 +0000
committeralex <alex@FreeBSD.org>2000-10-15 11:35:48 +0000
commit16b7b5256b098cbfcccd40598a02b1b4e2e97289 (patch)
treec2638cc3e456123a1c1d9d1a096b11d7982b631d /usr.bin/mktemp
parent248449f128e50e8c65b18b9d4ec26d53f34407b9 (diff)
downloadFreeBSD-src-16b7b5256b098cbfcccd40598a02b1b4e2e97289.zip
FreeBSD-src-16b7b5256b098cbfcccd40598a02b1b4e2e97289.tar.gz
Correct the usage of mktemp:
The old version lists all args as optional. However, you need at least one arg to get a usable result. PR: 18667 Reported by: obrien Submitted by: Johan Karlsson <k@numeri.campus.luth.se> Reviewed by: sheldonh
Diffstat (limited to 'usr.bin/mktemp')
-rw-r--r--usr.bin/mktemp/mktemp.17
-rw-r--r--usr.bin/mktemp/mktemp.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/mktemp/mktemp.1 b/usr.bin/mktemp/mktemp.1
index da93d35..0e67404 100644
--- a/usr.bin/mktemp/mktemp.1
+++ b/usr.bin/mktemp/mktemp.1
@@ -44,7 +44,12 @@
.Op Fl q
.Op Fl t Ar prefix
.Op Fl u
-.Op Ar template ...
+.Ar template ...
+.Nm mktemp
+.Op Fl d
+.Op Fl q
+.Op Fl u
+.Fl t Ar prefix
.Sh DESCRIPTION
The
.Nm
diff --git a/usr.bin/mktemp/mktemp.c b/usr.bin/mktemp/mktemp.c
index 381872d..3fe079f 100644
--- a/usr.bin/mktemp/mktemp.c
+++ b/usr.bin/mktemp/mktemp.c
@@ -145,6 +145,8 @@ static void
usage()
{
fprintf(stderr,
- "usage: mktemp [-d] [-q] [-t prefix] [-u] [template ...]\n");
+ "usage: mktemp [-d] [-q] [-t prefix] [-u] template ...\n");
+ fprintf(stderr,
+ " mktemp [-d] [-q] [-u] -t prefix \n");
exit (1);
}
OpenPOWER on IntegriCloud