summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2002-07-31 13:59:01 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2002-07-31 13:59:01 +0000
commitc5c6939571585f8c5a0394aec05436abd4c30f24 (patch)
tree9008fd069828b53f8e687bf7bf2be1acbd75dc2c /perl-install
parent83b8528e868256757835067d9a945186933958e8 (diff)
downloaddrakx-backup-do-not-use-c5c6939571585f8c5a0394aec05436abd4c30f24.tar
drakx-backup-do-not-use-c5c6939571585f8c5a0394aec05436abd4c30f24.tar.gz
drakx-backup-do-not-use-c5c6939571585f8c5a0394aec05436abd4c30f24.tar.bz2
drakx-backup-do-not-use-c5c6939571585f8c5a0394aec05436abd4c30f24.tar.xz
drakx-backup-do-not-use-c5c6939571585f8c5a0394aec05436abd4c30f24.zip
- fix $ENV{HOME} value to '/root' if usermode break it
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/run_program.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index 5468fdd25..fe3b938f3 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -40,7 +40,7 @@ sub rooted {
($stdout_mode, $stdout_raw, @args) = @args if $args[0] =~ /^>>?$/;
($stderr_mode, $stderr_raw, @args) = @args if $args[0] =~ /^2>>?$/;
- $ENV{HOME} || $::isInstall or die q($HOME is unset, so I don't know where to put my temporary files);
+ $ENV{HOME} || $::isInstall or $ENV{HOME} = '/root';
my $stdout = $stdout_raw && (ref($stdout_raw) ? "$ENV{HOME}/tmp/.drakx-stdout.$$" : "$root$stdout_raw");
my $stderr = $stderr_raw && (ref($stderr_raw) ? "$ENV{HOME}/tmp/.drakx-stderr.$$" : "$root$stderr_raw");