I have found the issue.
When you compile with DEBHELPER it sets the compile flag
-DKDESU_USE_SUDO_DEFAULT.
This changes the authentication prompt text it receives back when it attempts
to run SUDO.
Prompt received when compiled using make, cmake => Password:
Prompt received when compiled using debhelper => [sudo: authenticate]
Password:
Prompt received by the debhelper autotests ==> [sudo] password for jr:
As you can seem the second prompt has two colons, which breaks the logic in
line 268 of KDESU/SRC/SUPROCESS.CPP.
if (colon == 1 && line[j] == ':') {
The automated tests don't pick this up, because the prompt it gets is
different again, and has only the one colon...
Skipping past the square brackets before you start counting colons is
probably the safest fix?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130805
Title:
kdesu hangs
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde-cli-tools/+bug/2130805/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs