From: Thomas Roessler Date: Sun, 5 Jan 2003 22:16:02 +0000 (+0000) Subject: Error checking for the creation of the temporary directory; also, X-Git-Tag: mutt-1-5-4-rel~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02e88d79f130a9db9a0f81a8fedaf900e2016ae3;p=mutt Error checking for the creation of the temporary directory; also, use file mode 0700. --- diff --git a/smime_keys.pl b/smime_keys.pl index 87147184..a131e34e 100755 --- a/smime_keys.pl +++ b/smime_keys.pl @@ -956,7 +956,7 @@ sub newfile ($;$$) { if (! $tmpdir and $option eq "temp") { $tmpdir = mutt_Q 'tmpdir'; $tmpdir = newfile("$tmpdir/smime"); - mkdir $tmpdir; + mkdir $tmpdir, 0700 || die "Can't create $tmpdir: $!\n"; } $filename = "$tmpdir/$filename" if ($option eq "temp"); my $newfilename = $filename;