summaryrefslogtreecommitdiffstats
path: root/usr.bin/mktemp/mktemp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move the check for template length added in r1.16 outside the !tflaglandry2013-08-061-8/+8
| | | | | | block so that the friendly error message is also shown in the -t case instead of EINVAL. ok millert@ deraadt@
* Add fatal() and fatalx() that honor the quiet flag instead ofmillert2013-03-141-31/+46
| | | | using "if (quiet) warn(...); exit(1);" throughout. OK sthen@
* Fix indentationmillert2013-03-141-3/+3
|
* warnx() not warningx(), too much sudo on the brainmillert2013-03-121-2/+2
|
* Require that the template include at least 6 trailing Xs to matchmillert2013-03-121-8/+18
| | | | | | POSIX mkstemp/mkdtemp. Check before the call to mkstemp/mkdtemp so we can give a better error message than "invalid argument". OK deraadt@ jmc@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* "usage:" is lowercase; synchronize synopsis and usage.sobrado2008-05-261-3/+3
|
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-9/+9
| | | | where applicable.
* mostly ansi cleanup; pval okderaadt2003-06-101-6/+4
|
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-23/+12
|
* Don't assume that asprintf() will leave "tempfile" unmolested whenmillert2003-04-251-4/+4
| | | | memory allocation fails. Noted and OK by pval@
* Simplify code for -t using asprintf(); deraadt@ OKmillert2003-04-071-19/+13
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* Sync with portable mktemp-1.4; the template is now optional.millert2001-10-111-48/+56
| | | | Came out of discussions with Solar Designer.
* Add -t and -d flags to allow script writers to easily take a user's TMPDIRmillert2001-10-011-17/+52
| | | | | environment variable into account. This came out of a discussion with Solar Designer.
* Remove the advertising clause in my old license, it impedes free usemillert1998-06-211-6/+3
| | | | | of the code as a large number of similar clauses makes it impossible to write an ad for a product using the code...
* Use mkdtemp(3)millert1997-06-201-13/+3
|
* Adds a -d (directory) flag.millert1997-06-171-16/+42
|
* Better error on failure.millert1997-01-031-3/+3
|
* mktemp(1) for shell scripts. No more gross directory hackery for safe tempmillert1996-11-211-0/+97
files.