Skip Menu |
 

Subject: Add support for utmps interface on HPUX 11.23
Date: Thu, 26 Jan 2006 16:06:49 -0800
From: "Nate Yocom" <nate.yocom@centrify.com>
To: <krb5-bugs@mit.edu>
HPUX 11.23 now uses yet another new utmp interface, the utmpd daemon -
which is to be accessed via the <utmps.h> header/functions. Without
support for these functions, the following error occurs when execv'ing
/bin/login from telnetd:

"No utmp entry.You must exec "login" from the lowest level "sh".
Connection closed by foreign host."

I.e. /bin/login fails because it checks with the utmpd daemon for the
utmp associated with the current session.

The attached patch adds a check for setutsent (the utmps equivalent to
setutent or setutxent), and sets HAVE_SETUTSENT if available. Based on
HAVE_SETUTSENT we then redefine the utmp management macros to use the
utmps interface rather than the older deprecated (on 11.23 at least)
functions.

Thanks,
Nate Yocom
Senior Software Engineer
Centrify Corporation
425.462.5894
www.centrify.com
Download utmps_support.diff
application/octet-stream 8.6KiB

Message body not shown because it is not plain text.

From: raeburn@mit.edu
Subject: SVN Commit
Test for and use setutsent, based on a patch from Nate Yocom at Centrify.
Modified to restrict the configure test to just the pty library.

Commit By: raeburn



Revision: 18161
Changed Files:
U trunk/src/appl/libpty/configure.in
U trunk/src/appl/libpty/update_utmp.c