Version: (using KDE 4.2.0) Compiler: gcc (GCC) 4.3.0 OS: Other Installed from: Compiled From Sources su is configured to report time of last login in case of successful login, e.g.: "Last login: Sun Feb 8 11:36:23 CET 2009 on pts/6" su.cpp in kdelibs though does expect su to report just an empty line so su.cpp thinks authorization failed which in this case is not true. Solution is to also check if the reported output of su contains at the beginning of the line "Last login:" See attached patch implementing this with RegExp.
Created attachment 31116 [details] Patch Patch solving issue and checking su output for "Last login:" message, too.
output od su program not being handled without attached patch: kdesu(25171)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /sources/kde/src/kdelibs-4.2.0/kdesu/su.cpp : 254 ] Read line < "Last login: Sun Feb 8 11:36:23 CET 2009 on pts/6" >
*** Bug 232617 has been marked as a duplicate of this bug. ***
*** Bug 233467 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > output od su program not being handled without attached patch: > > kdesu(25171)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ > /sources/kde/src/kdelibs-4.2.0/kdesu/su.cpp : 254 ] Read line < "Last login: > Sun Feb 8 11:36:23 CET 2009 on pts/6" > Please see Bug 233467 for new patch which should also fix Bug 232617. Please test it for me.
(In reply to comment #6) > *** Bug 232617 has been marked as a duplicate of this bug. *** Are you interested in fixing this bug? Or, are you only interested in pedantically closing bugs which have not been fixed ye? IAC: Bug 232617 should be marked as a duplicate of Bug 233467. This bug (Bug 183671) should be marked as a duplicate of Bug 233467. The reason for this is that chronology is not always the best or only criteria. Bug 233467 encompasses a larger issue, so it should be the bug which remains open and it is where the patch was posted.
*** This bug has been marked as a duplicate of bug 25690 ***