From: David Levine Date: Wed, 22 Jan 2014 02:55:57 +0000 (-0600) Subject: Always check that mktemp()/mktemp2() succeeds before trying to X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/4a78cbcd4fa986d9c1e7bd0a5a4bdb619faeb7cb?hp=4a78cbcd4fa986d9c1e7bd0a5a4bdb619faeb7cb Always check that mktemp()/mktemp2() succeeds before trying to use result. And if it fails, have the error message report the directory where the failed temporary file creation occurred. And, removed all chmod()'s of temporary files created by mktemp()/ mktemp2() because they set the umask to 077 before calling mkstemp(3). ---