summaryrefslogtreecommitdiffstats
path: root/extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff
diff options
context:
space:
mode:
Diffstat (limited to 'extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff')
-rw-r--r--extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff23
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff b/extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff
new file mode 100644
index 000000000..4f7c8f3a0
--- /dev/null
+++ b/extra/source/kde3-compat/kdelibs3/kdelibs-utempter.diff
@@ -0,0 +1,23 @@
+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();