Bug 345019

Summary: kdesudo stalls.
Product: [Applications] kdesu Reporter: Helio Loureiro <helio.loureiro>
Component: generalAssignee: kdesu bugs tracker <kdesu-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: cfeck
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Helio Loureiro 2015-03-10 17:26:19 UTC
If the password prompt is changed in sudo command, kdesudo just stalls. 

Reproducible: Always

Steps to Reproduce:
1. Change sudo message to request password.
2. Run kdesudo xterm.


Actual Results:  
It hangs.

Expected Results:  
$ sudo whoami
Enter password: 
root

--- kdesudo-3.4.2.4+repack.orig/kdesudo/kdesudo.cpp
+++ kdesudo-3.4.2.4+repack/kdesudo/kdesudo.cpp
@@ -322,7 +322,7 @@ void KdeSudo::parseOutput()
         error(i18n("Your user is not allowed to run sudo on this host!"));
     } else if (strOut.contains("may not run sudo on")) {
         error(i18n("Your user is not allowed to run sudo on this host!"));
-    } else if ((strOut.contains("passprompt")) || (strOut.contains("PIN (CHV2)"))) {
+    } else if ((strOut.contains("passprompt")) || (strOut.contains("PIN (CHV2)")) || strOut.contains("password:")) {
         m_dialog->setPassword(QString());
         m_dialog->show();
     } else {
Comment 1 Christoph Feck 2015-03-10 22:27:34 UTC
kdesu != kdesudo

Please report this issue to kdesudo developers.