aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-28 22:55:36 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-28 22:55:36 +0000
commit2e6a4e779211362d95f94f6a53803596a5e3da03 (patch)
treef90d1763a720cc84fa44c5a3e8fef1a0c0b64165
parent97f8d72c818c29a8b9e4c0c51fcbce7090ebb82e (diff)
downloadiurt-2e6a4e779211362d95f94f6a53803596a5e3da03.tar
iurt-2e6a4e779211362d95f94f6a53803596a5e3da03.tar.gz
iurt-2e6a4e779211362d95f94f6a53803596a5e3da03.tar.bz2
iurt-2e6a4e779211362d95f94f6a53803596a5e3da03.tar.xz
iurt-2e6a4e779211362d95f94f6a53803596a5e3da03.zip
don't destroy $_ in callers
-rwxr-xr-xiurt21
1 files changed, 1 insertions, 0 deletions
diff --git a/iurt2 b/iurt2
index 2e184fd..b9a31ed 100755
--- a/iurt2
+++ b/iurt2
@@ -1372,6 +1372,7 @@ sub find_provides {
sub check_sudo_access {
open my $right, "$sudo -l |";
return 1 if ! $<;
+ local $_;
while(<$right>) {
/\(ALL\)\s+NOPASSWD:\s+ALL/ and return 1
}