aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2008-07-10 22:19:52 +0000
committerGustavo De Nardin <spuk@mandriva.org>2008-07-10 22:19:52 +0000
commitc4ba505182fce1644f4db07a3a8640e416d1c7cc (patch)
treea2d64c3de7ef1bf45dbb00e815599ce26f51babd /iurt2
parent0c2ff26da8886c9007d981da6bc7b43b53512204 (diff)
downloadiurt-c4ba505182fce1644f4db07a3a8640e416d1c7cc.tar
iurt-c4ba505182fce1644f4db07a3a8640e416d1c7cc.tar.gz
iurt-c4ba505182fce1644f4db07a3a8640e416d1c7cc.tar.bz2
iurt-c4ba505182fce1644f4db07a3a8640e416d1c7cc.tar.xz
iurt-c4ba505182fce1644f4db07a3a8640e416d1c7cc.zip
use the defined $sudo instead of whole path to sudo
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index 4cd800d..bc97b15 100755
--- a/iurt2
+++ b/iurt2
@@ -1552,7 +1552,7 @@ sub find_provides {
}
sub check_sudo_access() {
- return 0 == system("/usr/bin/sudo -S /bin/true &>/dev/null </dev/null");
+ return 0 == system("$sudo -S /bin/true &>/dev/null </dev/null");
}
__END__