summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kdecore/kconfigdialogmanager.cpp2
-rw-r--r--kdecore/kpty.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/kdecore/kconfigdialogmanager.cpp b/kdecore/kconfigdialogmanager.cpp
index 411ed2a90..1d89bf49b 100644
--- a/kdecore/kconfigdialogmanager.cpp
+++ b/kdecore/kconfigdialogmanager.cpp
@@ -158,7 +158,7 @@ bool KConfigDialogManager::parseChildren(const TQWidget *widget, bool trackChang
return valueChanged;
TQObject *object;
- for( TQPtrListIterator<TQObject> it( *listOfChildren );
+ for( TQObjectListIterator it( *listOfChildren );
(object = it.current()); ++it )
{
if(!object->isWidgetType())
diff --git a/kdecore/kpty.cpp b/kdecore/kpty.cpp
index b6c3782c4..f6fc9d5cd 100644
--- a/kdecore/kpty.cpp
+++ b/kdecore/kpty.cpp
@@ -442,7 +442,9 @@ void KPty::login(const char *user, const char *remotehost)
#ifdef HAVE_UTEMPTER
KProcess_Utmp utmp;
utmp.cmdFd = d->masterFd;
- utmp << "/usr/sbin/utempter" << "-a" << d->ttyName << "";
+ utmp << "/usr/lib/utempter/utempter" << "add";
+ if (remotehost)
+ utmp << remotehost;
utmp.start(KProcess::Block);
Q_UNUSED(user);
Q_UNUSED(remotehost);
@@ -485,7 +487,7 @@ void KPty::logout()
#ifdef HAVE_UTEMPTER
KProcess_Utmp utmp;
utmp.cmdFd = d->masterFd;
- utmp << "/usr/sbin/utempter" << "-d" << d->ttyName;
+ utmp << "/usr/lib/utempter/utempter" << "del";
utmp.start(KProcess::Block);
#elif defined(USE_LOGIN)
const char *str_ptr = d->ttyName.data();