summaryrefslogtreecommitdiffstats
path: root/perl-install/run_program.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/run_program.pm')
-rw-r--r--perl-install/run_program.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index 7e6e94368..c6eb456b8 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;
};