diff options
author | Alexander Langer <alex@FreeBSD.org> | 2000-10-15 11:35:48 +0000 |
---|---|---|
committer | Alexander Langer <alex@FreeBSD.org> | 2000-10-15 11:35:48 +0000 |
commit | c0206f33f75aaf2c86505c60385dc21a1d9534e6 (patch) | |
tree | d5625552c98ce5b5089fe689380b02c11b776398 /usr.bin/mktemp | |
parent | f0af59f2c157307c409c5373b5915d946a6bc77e (diff) | |
download | src-test-c0206f33f75aaf2c86505c60385dc21a1d9534e6.tar.gz src-test-c0206f33f75aaf2c86505c60385dc21a1d9534e6.zip |
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
Notes
Notes:
svn path=/head/; revision=67162
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 da93d35b4ea74..0e674045a7326 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 381872d45ee45..3fe079f380b77 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); } |