diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-11-27 00:49:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-11-27 00:49:50 +0000 |
commit | 03864dc61ca43ad83e2fe215d8b5438d2b351a3a (patch) | |
tree | 1df08ebce2b7ef54ce337a4350500793563f36d0 /perl-install/common.pm | |
parent | b875a640513c069bfb7edf4151248ff5dd8b853c (diff) | |
download | drakx-03864dc61ca43ad83e2fe215d8b5438d2b351a3a.tar drakx-03864dc61ca43ad83e2fe215d8b5438d2b351a3a.tar.gz drakx-03864dc61ca43ad83e2fe215d8b5438d2b351a3a.tar.bz2 drakx-03864dc61ca43ad83e2fe215d8b5438d2b351a3a.tar.xz drakx-03864dc61ca43ad83e2fe215d8b5438d2b351a3a.zip |
(secured_file) fix crashing on creating temp file if temp dir doesn't exist (mga#1396)
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r-- | perl-install/common.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm index fb42180c7..30ef121e2 100644 --- a/perl-install/common.pm +++ b/perl-install/common.pm @@ -267,6 +267,7 @@ sub open_file { sub secured_file { my ($f) = @_; + mkdir_p(dirname($f)); c::is_secure_file($f) or die "cannot ensure a safe $f"; $f; } |