Date: Mon, 28 Jul 2008 21:18:59 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio mktemp.c Message-ID: <200807282119.m6SLJHn2087686@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2008-07-28 21:18:59 UTC FreeBSD src repository Modified files: lib/libc/stdio mktemp.c Log: SVN rev 180938 on 2008-07-28 21:18:59Z by jhb Fix a few bugs with the _gettemp() routine which implements mkstemp(), mkstemps(), and mkdtemp(). - Add proper range checking for the 'slen' parameter passed to mkstemps(). - Try all possible permutations of a template if a collision is encountered. Previously, once a single template character reached 'z', it would not wrap around to '0' and keep going until it encountered the original starting letter. In the edge case that the randomly generated starting name used all 'z' characters, only that single name would be tried before giving up. PR: standards/66531 Submitted by: Jim Luther Obtained from: Apple MFC after: 1 week Revision Changes Path 1.31 +26 -11 src/lib/libc/stdio/mktemp.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807282119.m6SLJHn2087686>