diff options
author | alex <alex@FreeBSD.org> | 2000-10-15 11:35:48 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 2000-10-15 11:35:48 +0000 |
commit | 16b7b5256b098cbfcccd40598a02b1b4e2e97289 (patch) | |
tree | c2638cc3e456123a1c1d9d1a096b11d7982b631d /usr.bin/mktemp | |
parent | 248449f128e50e8c65b18b9d4ec26d53f34407b9 (diff) | |
download | FreeBSD-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.1 | 7 | ||||
-rw-r--r-- | usr.bin/mktemp/mktemp.c | 4 |
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); } |