trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: August 2010

Re: [trinity-devel] kdelibs utempter patch

From: "Timothy Pearson" <kb9vqf@...>
Date: Tue, 24 Aug 2010 22:42:11 -0500
Committed in SVN revision 1167615.

Keep 'em coming! ;-)

Tim

> The following patch has been part of Slackware since June 2007. I checked
> svn and do not see the same patch being applied. Here is the text from the
> Slackware change log:
>
> kde/kdelibs-3.5.7-i486-2.tgz:  Patched to call utempter in the proper
> location and with the right arguments. Thanks to Ken Milmore for the
> patch.
>
> I hope this helps.
>
> ========================================
> diff -Naur kdelibs-3.5.7.orig/kdecore/kpty.cpp
> kdelibs-3.5.7/kdecore/kpty.cpp
> --- kdelibs-3.5.7.orig/kdecore/kpty.cpp	2006-05-22 19:14:21.000000000
> +0100
> +++ kdelibs-3.5.7/kdecore/kpty.cpp	2007-06-10 14:08:18.000000000 +0100
> @@ -401,7 +401,9 @@
>  #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);
> @@ -444,7 +446,7 @@
>  #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();
> ========================================
>
>
>
>