diff options
Diffstat (limited to 'iurt2')
-rwxr-xr-x | iurt2 | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1464,13 +1464,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; - } - 0; + return 0 == system("/usr/bin/sudo -S /bin/true &>/dev/null </dev/null"); } __END__ |