On Fri, Jul 11, 2014 at 12:19:22PM +0200, Philip Guenther wrote: > This should call warn() before unlink() or close() to guarantee that the > correct errno value is reported.
Philip, I see what you are saying. I was following the man page example in mkstemp(3) which calls warn() after unlink/close. I'll update the patch. I see a number of places in the tree which call warn like the man page example. I'll submit a patch to fix those too. Thanks!