Bug 156197 - kpty needs loginx() support
Summary: kpty needs loginx() support
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: NetBSD pkgsrc NetBSD
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-19 21:19 UTC by Mark Davies
Modified: 2008-01-20 09:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
loginx() support (1.40 KB, patch)
2008-01-19 21:19 UTC, Mark Davies
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Davies 2008-01-19 21:19:00 UTC
Version:            (using KDE 4.0.0)
Installed from:    NetBSD pkgsrc
OS:                NetBSD

Between RC2 and the 4.0.0 release kpty grew knowledge of the login() function, however attempting to use this on NetBSD fails as on that platform login() works with struct utmp's whereas loginx() is what you use with struct utmpx's.
I'll attach a patch to add support for use and detection of loginx().
Comment 1 Mark Davies 2008-01-19 21:19:45 UTC
Created attachment 23142 [details]
loginx() support
Comment 2 Oswald Buddenhagen 2008-01-20 09:51:59 UTC
SVN commit 763699 by ossi:

use loginx() with utmpx when available. fixes NetBSD compile.
patch by Mark Davies <mark@mcs.vuw.ac.nz>
BUG: 156197


 M  +3 -0      ConfigureChecks.cmake  
 M  +1 -0      config-pty.h.cmake  
 M  +8 -0      kpty/kpty.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=763699