mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67162
|
@ -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 a new issue