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:
parent
f0af59f2c1
commit
c0206f33f7
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user