aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-21 15:09:16 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-21 15:09:16 +0000
commitf73cea963a17e12f46572736e614d8f1bda46279 (patch)
treef7775283b528efd1738284f6c61292a06fcd0e0c /rpmdrake.pm
parentf38365a64a5eb91b63c0657dcbd7496080065ead (diff)
downloadrpmdrake-f73cea963a17e12f46572736e614d8f1bda46279.tar
rpmdrake-f73cea963a17e12f46572736e614d8f1bda46279.tar.gz
rpmdrake-f73cea963a17e12f46572736e614d8f1bda46279.tar.bz2
rpmdrake-f73cea963a17e12f46572736e614d8f1bda46279.tar.xz
rpmdrake-f73cea963a17e12f46572736e614d8f1bda46279.zip
if EUID is 0, always read config file in root directory
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index f4e80150..1fa71386 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -150,6 +150,7 @@ sub myexit {
ugtk2::exit(undef, @_);
}
+$ENV{HOME} = '/root' if $> == 0;
$ENV{HOME} ||= '/root';
our $configfile = "$ENV{HOME}/.rpmdrake";