Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > afbf85d6572d09c5c1c9e4422092db96 > files > 2

kde4base-4.1.3-alt0.M41.2.src.rpm

--- kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp~	2008-03-27 23:34:10 +0300
+++ kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp	2008-04-14 16:45:36 +0400
@@ -108,19 +108,19 @@ KCMUserAccount::KCMUserAccount( QWidget 
 
 void KCMUserAccount::slotChangePassword()
 {
-	QString bin = KGlobal::dirs()->findExe("kdepasswd");
+	QString bin = KGlobal::dirs()->findExe("userpasswd");
 	if ( bin.isNull() )
 	{
-		kDebug() << "kcm_useraccount: kdepasswd was not found.";
+		kDebug() << "kcm_useraccount: userpasswd was not found.";
 		KMessageBox::sorry ( this, i18n( "A program error occurred: the internal "
-			"program 'kdepasswd' could not be found. You will "
+			"program 'userpasswd' could not be found. You will "
 			"not be able to change your password."));
 
 		_mw->btnChangePassword->setEnabled(false);
 		return;
 	}
 	QStringList lst;
-	lst << _ku->loginName();
+//	lst << _ku->loginName();
 	QProcess::startDetached(bin,lst);
 
 }
--- kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp~	2008-04-14 16:50:11 +0400
+++ kdebase-4.0.3/apps/kdepasswd/kcm/main.cpp	2008-04-14 19:19:21 +0400
@@ -220,7 +220,7 @@ void KCMUserAccount::save()
 		}
 
 		ChfnProcess *proc = new ChfnProcess();
-		int ret = proc->exec(dlg.password().toAscii() , _mw->leRealname->text().toAscii() );
+		int ret = proc->exec(dlg.password().toAscii() , _mw->leRealname->text().toUtf8().data() );
 		if ( ret )
 			{
 			if ( ret == ChfnProcess::PasswordError )