Handle new sudo format as seen on Ubuntu 11
authorJamie Cameron <jcameron@webmin.com>
Wed, 25 May 2011 17:54:20 +0000 (10:54 -0700)
committerJamie Cameron <jcameron@webmin.com>
Wed, 25 May 2011 17:54:20 +0000 (10:54 -0700)
https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3305224&group_id=17457

miniserv.pl

index 7fd3e90..d4d8dfb 100755 (executable)
@@ -5203,7 +5203,7 @@ while(<$ptyfh>) {
 close($ptyfh);
 kill('KILL', $pid);
 waitpid($pid, 0);
-local ($ok) = ($out =~ /\(ALL\)\s+ALL|\(ALL\)\s+NOPASSWD:\s+ALL/ ? 1 : 0);
+local ($ok) = ($out =~ /\(ALL\)\s+ALL|\(ALL\)\s+NOPASSWD:\s+ALL|\(ALL\s*:\s*ALL\)\s+ALL/ ? 1 : 0);
 
 # Update cache
 if ($PASSINw) {