Mageia Bugzilla – Attachment 155 Details for
Bug 475
Sudo -n option no longer work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch from upstream to fix the issue
sudoers.diff (text/plain), 561 bytes, created by
Michael Scherer
on 2011-03-20 16:03:48 CET
(
hide
)
Description:
Patch from upstream to fix the issue
Filename:
MIME Type:
Creator:
Michael Scherer
Created:
2011-03-20 16:03:48 CET
Size:
561 bytes
patch
obsolete
>Index: plugins/sudoers/sudoers.c >=================================================================== >--- plugins/sudoers/sudoers.c >+++ plugins/sudoers/sudoers.c 2011-03-20 15:59:03.858397665 +0100 >@@ -1157,6 +1157,12 @@ > } > continue; > } >+ if (MATCHES(*cur, "noninteractive=")) { >+ if (atobool(*cur + sizeof("noninteractive=") - 1) == TRUE) { >+ SET(flags, MODE_NONINTERACTIVE); >+ } >+ continue; >+ } > if (MATCHES(*cur, "implied_shell=")) { > if (atobool(*cur + sizeof("implied_shell=") - 1) == TRUE) > SET(flags, MODE_IMPLIED_SHELL);
Index: plugins/sudoers/sudoers.c =================================================================== --- plugins/sudoers/sudoers.c +++ plugins/sudoers/sudoers.c 2011-03-20 15:59:03.858397665 +0100 @@ -1157,6 +1157,12 @@ } continue; } + if (MATCHES(*cur, "noninteractive=")) { + if (atobool(*cur + sizeof("noninteractive=") - 1) == TRUE) { + SET(flags, MODE_NONINTERACTIVE); + } + continue; + } if (MATCHES(*cur, "implied_shell=")) { if (atobool(*cur + sizeof("implied_shell=") - 1) == TRUE) SET(flags, MODE_IMPLIED_SHELL);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 475
: 155