https://bugs.kde.org/show_bug.cgi?id=389049

--- Comment #1 from Harald Sitter <[email protected]> ---
after looking at the code a bit I am almost entirely certain that the problem
is that converseSU doesn't correctly implement sudo handling

with su what happens is:

- state WaitForPrompt
- line="Password: "
- write wrong password to stdin
- state CheckStar
- line=""
- line empty
- state HandleStub
- line=(null)
- return notauthorized

with sudo

- state WaitForPrompt
- line="[sudo] password for $USER: "
- write wrong password to stdin
- state CheckStar
- line=""
- line empty
- state HandleStub
- line="Sorry, try again."
- stuck: sudo is wayting for a new password, we are waiting for a null line

"Sorry, try again." may appear 0-N times depending on sudoers configuration. We
cannot influence this specifically. The only way to get anything of the sort
going is if we ran sudo with --stdin and closed the fd (causing sudo to only
read once and then implode; output would still be divergent from su though).

In any case the converseSU parsing needs to be made sudo compatible.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to