projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc4c24c
)
Handle new sudo format as seen on Ubuntu 11
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 25 May 2011 17:54:20 +0000
(10:54 -0700)
committer
Jamie 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
patch
|
blob
|
history
diff --git
a/miniserv.pl
b/miniserv.pl
index
7fd3e90
..
d4d8dfb
100755
(executable)
--- a/
miniserv.pl
+++ b/
miniserv.pl
@@
-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) {