projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d7c3f
)
Handle NOPASSWD: in sudo output
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 28 Dec 2010 18:19:22 +0000
(10:19 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 28 Dec 2010 18:19:22 +0000
(10:19 -0800)
miniserv.pl
patch
|
blob
|
history
diff --git
a/miniserv.pl
b/miniserv.pl
index
cca9c76
..
0bc5dbf
100755
(executable)
--- a/
miniserv.pl
+++ b/
miniserv.pl
@@
-5121,7
+5121,7
@@
while(<$ptyfh>) {
close($ptyfh);
kill('KILL', $pid);
waitpid($pid, 0);
-local ($ok) = ($out =~ /\(ALL\)\s+ALL/ ? 1 : 0);
+local ($ok) = ($out =~ /\(ALL\)\s+ALL
|\(ALL\)\s+NOPASSWD:\s+ALL
/ ? 1 : 0);
# Update cache
if ($PASSINw) {