projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
2f9dd07
)
Merged from 5.2
author
Roland Mas
<lolando@debian.org>
Mon, 17 Jun 2013 12:39:33 +0000
(14:39 +0200)
committer
Roland Mas
<lolando@debian.org>
Mon, 17 Jun 2013 12:39:33 +0000
(14:39 +0200)
src/utils/include.pl
patch
|
blob
|
history
diff --git
a/src/utils/include.pl
b/src/utils/include.pl
index d3d495586338aded880ba930d87289f7ebc866e3..09a246346de9cc8f82f50a05fb9227b3cc199406 100644
(file)
--- a/
src/utils/include.pl
+++ b/
src/utils/include.pl
@@
-122,7
+122,9
@@
sub write_array_file {
use File::Temp qw(tempfile);
use File::Basename qw(dirname);
- my ($fd, $filename) = tempfile( DIR => dirname($file_name), UNLINK => 0) ;
+ my ($fd, $filename) ;
+ eval { ($fd, $filename) = tempfile( DIR => dirname($file_name), UNLINK => 0) } ;
+
umask($oldmask);
return 1 unless ($fd && $filename) ;