summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-11-27 00:49:50 +0000
committerThierry Vignaud <tv@mageia.org>2011-11-27 00:49:50 +0000
commit03619f53a8827b58e64752dabf13b53d2837b821 (patch)
tree1df08ebce2b7ef54ce337a4350500793563f36d0
parentbb72cd2169c7d052ecb6cc9f7bd2d8e99204a7c8 (diff)
downloaddrakx-backup-do-not-use-03619f53a8827b58e64752dabf13b53d2837b821.tar
drakx-backup-do-not-use-03619f53a8827b58e64752dabf13b53d2837b821.tar.gz
drakx-backup-do-not-use-03619f53a8827b58e64752dabf13b53d2837b821.tar.bz2
drakx-backup-do-not-use-03619f53a8827b58e64752dabf13b53d2837b821.tar.xz
drakx-backup-do-not-use-03619f53a8827b58e64752dabf13b53d2837b821.zip
(secured_file) fix crashing on creating temp file if temp dir doesn't exist (mga#1396)
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/common.pm1
2 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 8a17acfd2..a00a3ae38 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- fix crashing on creating temp file if temp dir doesn't exist (mga#1396)
+
Version 13.70.1 - 22 November 2011
- drakbug:
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;
}