summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-11-27 13:06:54 +0000
committerThierry Vignaud <tv@mageia.org>2011-11-27 13:06:54 +0000
commitebde9467298155ef92bd6e918640ddd7f97e0243 (patch)
tree7c7f998879603a6197e7ac8a384062f02f127764
parentb75fe5bc05530bd25476ac36741f06dae4e8d5fe (diff)
downloaddrakx-backup-do-not-use-ebde9467298155ef92bd6e918640ddd7f97e0243.tar
drakx-backup-do-not-use-ebde9467298155ef92bd6e918640ddd7f97e0243.tar.gz
drakx-backup-do-not-use-ebde9467298155ef92bd6e918640ddd7f97e0243.tar.bz2
drakx-backup-do-not-use-ebde9467298155ef92bd6e918640ddd7f97e0243.tar.xz
drakx-backup-do-not-use-ebde9467298155ef92bd6e918640ddd7f97e0243.zip
(secured_file) fix crashing on creating temp file if temp dir doesn't exist (mga#1396)
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/common.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 515bb704e..72725245a 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,6 @@
- add wireless drivers: rtl8192se rtl8192cu rtl8192de
- add sas/raid driver: isci
+- fix crashing on creating temp file if temp dir doesn't exist (mga#1396)
Version 13.58 - 26 May 2011
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;
}