use mkdtemp() instead of tempnam, free mkdtemp() data afterwards, return true in...