* Call utempter in the proper location and with the right arguments [Thanks to Ken Milmore for the patch]

* Attempt to fix FTBFS under Slackware due to incorrect Qt header ordering 


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1167615 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 7382c6fd5c
commit 3243d91d7f

@ -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())

@ -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();

Loading…
Cancel
Save