s/tempnam/mkstemp/ in error message to reflect actual usage.