summaryrefslogtreecommitdiffstats
path: root/share/colldef
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-07-28 21:18:59 +0000
committerjhb <jhb@FreeBSD.org>2008-07-28 21:18:59 +0000
commit9cf4eed4faf08160ea86a41baec026d1c38ca844 (patch)
tree01e8383c204ffeb2aae53a7d819609283cb0a96c /share/colldef
parentbed722e078df53cb38b35c33a27cbe2a8c0998f5 (diff)
downloadFreeBSD-src-9cf4eed4faf08160ea86a41baec026d1c38ca844.zip
FreeBSD-src-9cf4eed4faf08160ea86a41baec026d1c38ca844.tar.gz
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
Diffstat (limited to 'share/colldef')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud