edbfdcbdb8
kbookmarks - Support for bookmarks and the XBEL format kcmutils - Utilities for interacting with KCModules kconfig - Configuration system kcoreaddons - Addons to QtCore kcrash - Support for application crash analysis and bug report from apps kdeclarative - Provides integration of QML and KDE Frameworks kdoctools - Documentation generation from docbook ki18n - Advanced internationalization framework kidletime - Monitoring user activity kio - Resource and network access abstraction kitemmodels - Models for Qt Model/View system knotifications - Abstraction for system notifications knotifyconfig - Configuration system for KNotify kpackage - Installation and loading of additional content as packages kparts - Document centric plugin system kpeople - Provides access to all contacts and aggregates them by person kpty - Pty abstraction kservice - Advanced plugin and service introspection ktexteditor - Advanced embeddable text editor threadweaver - High-level multithreading framework
26 lines
732 B
C++
26 lines
732 B
C++
$NetBSD: patch-src_kpty.cpp,v 1.1 2016/05/26 08:29:06 markd Exp $
|
|
|
|
NetBSD loginx() complains if ut_type not set before calling
|
|
|
|
--- src/kpty.cpp.orig 2016-04-03 21:01:19.000000000 +0000
|
|
+++ src/kpty.cpp
|
|
@@ -538,6 +538,9 @@ void KPty::login(const char *user, const
|
|
l_struct.ut_time = time(0);
|
|
# endif
|
|
|
|
+# if HAVE_STRUCT_UTMP_UT_TYPE
|
|
+ l_struct.ut_type = USER_PROCESS;
|
|
+# endif
|
|
# if HAVE_LOGIN
|
|
# if HAVE_LOGINX
|
|
::loginx(&l_struct);
|
|
@@ -545,9 +548,6 @@ void KPty::login(const char *user, const
|
|
::login(&l_struct);
|
|
# endif
|
|
# else
|
|
-# if HAVE_STRUCT_UTMP_UT_TYPE
|
|
- l_struct.ut_type = USER_PROCESS;
|
|
-# endif
|
|
# if HAVE_STRUCT_UTMP_UT_PID
|
|
l_struct.ut_pid = getpid();
|
|
# if HAVE_STRUCT_UTMP_UT_SESSION
|