diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-21 15:09:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-21 15:09:16 +0000 |
commit | f73cea963a17e12f46572736e614d8f1bda46279 (patch) | |
tree | f7775283b528efd1738284f6c61292a06fcd0e0c /rpmdrake.pm | |
parent | f38365a64a5eb91b63c0657dcbd7496080065ead (diff) | |
download | rpmdrake-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.pm | 1 |
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"; |