diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-12-14 16:42:45 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-12-14 16:42:45 +0000 |
commit | ea1c93402dfa2aba19ab3dbc3551cd21572affb9 (patch) | |
tree | ec45ca3dd1f9c2899748fabe19ef9f4a2d1ba13d /perl-install/interactive.pm | |
parent | 0f4c7b1bab30307ecee99c03506b0bb632e5c51f (diff) | |
download | drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar.gz drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar.bz2 drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.tar.xz drakx-backup-do-not-use-ea1c93402dfa2aba19ab3dbc3551cd21572affb9.zip |
no_comment
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r-- | perl-install/interactive.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 824bd795f..6691455db 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -43,11 +43,16 @@ sub vnew { $su = $su eq "su"; require c; if (c::Xtest($ENV{DISPLAY} ||= ":0")) { - $su && $> && exec "kdesu", "-c", "$0 @ARGV"; + if ($su && $>) { + $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}"; + exec "kdesu", "-c", "$0 @ARGV"; + } require interactive_gtk; interactive_gtk->new; } else { - $su && $> && die "you must be root to run this program"; + if ($su && $>) { + die "you must be root to run this program"; + } require 'log.pm'; undef *log::l; *log::l = sub {}; # otherwise, it will bother us :( |