Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | signedness fix; ok millert | 2011-10-02 | 1 | -2/+2 | |
| | |||||
* | When all tried file names already existed, mktemp(3) returned without | 2010-03-21 | 1 | -1/+3 | |
| | | | | | | setting errno(2). Behaviour unchanged for mkstemp[s] and mkdtemp. ok guenther deraadt | ||||
* | The previous commit didn't use the first X in the template if the | 2010-02-11 | 1 | -3/+2 | |
| | | | | | | | entire template was Xs. Test suite written now to keep this from happening again. Problem caught by Vadim Zhukov again. ok millert@ | ||||
* | Don't underrun the buffer when the template is all X's. | 2010-02-08 | 1 | -7/+2 | |
| | | | | | | | Also, remove a duplicate preconditions check. Based on a suggestion by Vadim Zhukov (persgray <at> gmail.com) ok millert@ | ||||
* | Return -1 from mktemp_internal() on EINVAL like we used to. | 2009-03-20 | 1 | -3/+3 | |
| | | | | OK oga@ thib@ | ||||
* | New mktemp(3) based on the one from portable mktemp(1). Now includes | 2009-03-01 | 1 | -89/+88 | |
| | | | | | | | digits (in addition to letters) in the random file name. Instead of looping forever, mktemp(3) will terminate when it has tried 2 * N^62 times where N is the number of X's. This is effectively forever for lots of X's. | ||||
* | when the template is entirely XXX characters, would crash | 2009-02-17 | 1 | -4/+6 | |
| | | | | | from Vadim Zhukov <persgray@gmail ok millert | ||||
* | add missing header needed by strlen(). | 2008-09-15 | 1 | -1/+2 | |
| | | | | ok millert@ | ||||
* | Replace the old algorithm that included the process id as part of the | 2008-08-22 | 1 | -49/+20 | |
| | | | | temporary file name with one that only uses random data. OK deraadt@ | ||||
* | Remove useless code, the kernel will set errno appropriately if an | 2008-08-21 | 1 | -21/+1 | |
| | | | | element in the path does not exist. OK deraadt@ pvalchev@ | ||||
* | use arc4random_uniform(); ok djm millert | 2008-07-22 | 1 | -2/+2 | |
| | |||||
* | Comment fix about time consumption of _gettemp. | 2007-10-21 | 1 | -5/+2 | |
| | | | | | | FreeBSD did this in revision 1.20. OK deraadt@, krw@ | ||||
* | zap remaining rcsid. | 2005-08-08 | 1 | -4/+1 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | deregister + ansify, no change in object code. ok deraadt@ millert@ | 2004-09-28 | 1 | -18/+8 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Don't decrement the current character pointer past the beginning of the | 2002-05-27 | 1 | -3/+3 | |
| | | | | buffer passed in. Based on a patch from Mark Andrews. deraadt@ OK | ||||
* | 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. | 2002-02-16 | 1 | -3/+3 | |
| | |||||
* | more pid_t use | 2002-01-02 | 1 | -2/+3 | |
| | |||||
* | add mkstemp(char *template, int suffixlen) interface | 1998-06-30 | 1 | -12/+34 | |
| | |||||
* | wrap Z->a and z->A; peter@netplex.com.au | 1998-04-14 | 1 | -2/+4 | |
| | |||||
* | uninitialized case; bde | 1998-03-04 | 1 | -2/+3 | |
| | |||||
* | 1) Don't truncate the input string when a directory cannot be stat'd | 1997-10-07 | 1 | -15/+17 | |
| | | | | | 2) Use traditional mktemp(3) semantics. Don't return an error if directories in the path don't exist yet for mktemp(3) only. | ||||
* | Add mkdtemp(3) | 1997-06-20 | 1 | -7/+24 | |
| | |||||
* | Change a stat(2) -> lstat(2) to avoid symlink games. From Keith | 1997-04-07 | 1 | -2/+2 | |
| | | | | Bostic <bostic@bostic.com>. | ||||
* | Pull in stdlib.h for arc4random prototype. | 1997-02-10 | 1 | -1/+2 | |
| | |||||
* | pre-pad with random alphabetic letters instead of digit 0 | 1997-02-07 | 1 | -5/+17 | |
| | |||||
* | back out my last change to avoid the __warn_references on the mips - it's | 1997-01-20 | 1 | -3/+1 | |
| | | | | now done for the pmax like for the arc in machine/cdefs.h | ||||
* | put all the __warn_references behind a #ifndef NO_WARN_REFERENCES which | 1997-01-19 | 1 | -1/+3 | |
| | | | | | is then set in the libc Makefile for the mips (the mips linker can't handle them) | ||||
* | 95% of common uses of these are incorrect and insecure. correct use is | 1996-12-28 | 1 | -2/+15 | |
| | | | | incredibly rare. Time for some education! | ||||
* | Fix RCS ids | 1996-08-19 | 1 | -6/+1 | |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+133 | |