jhb
9cf4eed4fa
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
2008-07-28 21:18:59 +00:00
..
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2008-05-05 16:03:52 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-04-22 16:47:59 +00:00
2008-05-10 18:39:20 +00:00
2008-05-05 16:03:52 +00:00
2007-01-09 00:28:16 +00:00
2008-05-05 16:03:52 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2004-08-06 17:00:09 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2008-05-05 16:03:52 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-22 17:03:32 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-04-19 14:01:04 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2007-06-18 02:13:04 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-05-05 16:03:52 +00:00
2008-05-05 16:03:52 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2004-05-25 10:42:52 +00:00
2004-05-25 10:42:52 +00:00
2007-01-09 00:28:16 +00:00
2008-05-05 16:03:52 +00:00
2007-01-09 00:28:16 +00:00
2008-06-29 21:52:40 +00:00
2007-01-09 00:28:16 +00:00
2008-07-28 21:18:59 +00:00
2007-01-09 00:28:16 +00:00
2008-06-29 23:46:06 +00:00
2008-04-12 03:11:56 +00:00
2007-01-09 00:28:16 +00:00
2008-06-29 22:54:26 +00:00
2007-01-09 00:28:16 +00:00
2008-05-05 16:03:52 +00:00
2008-05-05 16:03:52 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2004-05-25 10:42:52 +00:00
2004-05-25 10:42:52 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2008-05-05 16:14:02 +00:00
2008-05-05 16:14:02 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-03-16 21:46:24 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2008-06-29 22:54:26 +00:00
2007-12-09 21:00:12 +00:00
2008-06-29 22:54:26 +00:00
2007-12-09 21:00:12 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2008-04-17 22:17:54 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2007-01-09 00:28:16 +00:00
2006-01-25 12:45:24 +00:00
2005-12-16 18:56:39 +00:00
2005-12-16 18:56:39 +00:00
2005-12-22 14:23:54 +00:00
2006-03-02 08:53:45 +00:00
2005-12-16 18:56:39 +00:00
2006-02-04 14:35:01 +00:00
2006-01-25 12:45:24 +00:00
2008-05-05 16:03:52 +00:00