diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-11-23 16:18:34 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-11-23 16:18:34 +0000 |
commit | bf2da34167f0069877296600a6b9eda7dc2f5195 (patch) | |
tree | 563a784b7bd7213a6352cdba316bba6a26cc8d71 /perl-install | |
parent | 7b82489d4065ecc5aa46c376517d0c9004dcfbb5 (diff) | |
download | drakx-backup-do-not-use-bf2da34167f0069877296600a6b9eda7dc2f5195.tar drakx-backup-do-not-use-bf2da34167f0069877296600a6b9eda7dc2f5195.tar.gz drakx-backup-do-not-use-bf2da34167f0069877296600a6b9eda7dc2f5195.tar.bz2 drakx-backup-do-not-use-bf2da34167f0069877296600a6b9eda7dc2f5195.tar.xz drakx-backup-do-not-use-bf2da34167f0069877296600a6b9eda7dc2f5195.zip |
don't use /root/tmp if /root doesn't exist (fixes using it in rescue)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/run_program.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm index f74edb5b6..aa2c2c6a2 100644 --- a/perl-install/run_program.pm +++ b/perl-install/run_program.pm @@ -54,9 +54,8 @@ sub raw { $root ? ($root .= '/') : ($root = ''); - $ENV{HOME} || $::isInstall or $ENV{HOME} = '/root'; # TO REMOVE my $tmpdir = sub { - my $dir = $::isInstall ? '/tmp' : $< == 0 ? '/root/tmp' : "$ENV{HOME}/tmp"; + my $dir = $< != 0 ? "$ENV{HOME}/tmp" : -d '/root' ? '/root/tmp' : '/tmp'; -d $dir or mkdir($dir, 0700); $dir; }; |