make mkdtemp and mkstemp family leave template unchanged on fail
authorRich Felker <dalias@aerifal.cx>
Fri, 2 Aug 2013 04:48:48 +0000 (00:48 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 2 Aug 2013 04:48:48 +0000 (00:48 -0400)
commitc4685ae429a0cce4b285859d62a71fe603f0a864
tree7f6ea3b81689b5d4d96b61df8894c7352d13f572
parent926272ddffa293ee68ffeb01422fc8c792acf428
make mkdtemp and mkstemp family leave template unchanged on fail

also refactor mkdtemp based on new shared temp code, removing
dependency on the deprecated mktemp, whose behavior made this logic
more difficult.
src/temp/mkdtemp.c
src/temp/mkostemps.c