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
This commit is contained in:
Alexander Langer 2000-10-15 11:35:48 +00:00
parent f0af59f2c1
commit c0206f33f7
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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);
}