Bug 345019 - kdesudo stalls.
Summary: kdesudo stalls.
Status: RESOLVED NOT A BUG
Alias: None
Product: kdesu
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-10 17:26 UTC by Helio Loureiro
Modified: 2022-09-02 14:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.