[2900] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

pending/568: BUG: AIX 4.2 util/pty/update_utmp.c

daemon@ATHENA.MIT.EDU (Larry Schwimmer)
Thu Mar 19 08:36:44 1998

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU,
        Larry Schwimmer <schwim@whatmore.Stanford.EDU>
Date: Thu, 19 Mar 1998 05:35:26 -0800 (PST)
From: Larry Schwimmer <schwim@whatmore.Stanford.EDU>
To: krb5-bugs@MIT.EDU
Cc: schwim@leland.Stanford.EDU


>Number:         568
>Category:       pending
>Synopsis:       BUG: AIX 4.2 util/pty/update_utmp.c
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Thu Mar 19 08:36:00 EST 1998
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
Submitter-Id:	net
Originator:	Larry Schwimmer
Confidential:	no
Synopsis:	util/pty/update_utmp.c fails to compile on AIX 4.2
Severity:	serious
Priority:	medium
Category:	krb5-libs
Class:		sw-bug
Release:	1.0.5
Environment:	AIX 4.2.1.0
Description:

	AIX 4.2 <utmp.h> has ut_exit but <utmpx.h> does not; previous
versions of AIX did not have utmpx.h.  The aclocal.m4 file has a
NO_UT_EXIT variable (no code actually uses it, though), which handles
normal operating systems, but AIX dares to be different.

How-To-Repeat:

	Try to compile krb5-1.0.5 on AIX 4.2 and have it fail on
util/pty/update_utmp.c.

Fix:

	Add a NO_UTX_EXIT check to aclocal.m4 and have update_utmp.c
use it.

--- util/pty/update_utmp.c.orig	Fri Feb  6 19:46:43 1998
+++ util/pty/update_utmp.c	Thu Mar 19 05:01:50 1998
@@ -143,7 +156,9 @@
     utx.ut_exit.__e_termination = ent.ut_exit.e_termination;
     utx.ut_exit.__e_exit = ent.ut_exit.e_exit;
 #else
+#ifndef NO_UTX_EXIT
     utx.ut_exit = ent.ut_exit;
+#endif
 #endif
 #endif
     utx.ut_tv.tv_sec = ent.ut_time;

			yours,
				Larry Schwimmer
				schwim@leland.stanford.edu
				Leland Systems Group

home help back first fref pref prev next nref lref last post