Skip Menu |

Download (untitled) / with headers
text/plain 2.2KiB
From schwim@whatmore.Stanford.EDU Tue Mar 17 18:51:19 1998
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU []) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id SAA18416 for <bugs@RT-11.MIT.EDU>; Tue, 17 Mar 1998 18:51:18 -0500
Received: from whatmore.Stanford.EDU by MIT.EDU with SMTP
id AA03122; Tue, 17 Mar 98 18:51:49 EST
Received: (from schwim@localhost)
by whatmore.Stanford.EDU (8.8.8/8.8.8) id PAA29597;
Tue, 17 Mar 1998 15:51:16 -0800 (PST)
Message-Id: <199803172351.PAA29597@whatmore.Stanford.EDU>
Date: Tue, 17 Mar 1998 15:51:16 -0800 (PST)
From: Larry Schwimmer <schwim@whatmore.Stanford.EDU>
To: krb5-bugs@MIT.EDU
Cc: schwim@leland.Stanford.EDU
Subject: PATCH: util/pty/update_utmp.c

Show quoted text
>Number: 561
>Category: krb5-libs
>Synopsis: PATCH: util/pty/update_utmp.c
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue Mar 17 18:52:00 EST 1998
>Last-Modified: Tue Jul 06 21:08:07 EDT 1999
>Originator: Larry Schwimmer
>Release: 1.0.5
Solaris 2.6
Show quoted text

util/pty/update_utmp.c enters the incorrect entry on console,
which causes ttymon to fail to respawn a new session until it times
out (after a minute).

Show quoted text

Use login.krb5 or a login linked against libpty.a on
the console of a Solaris 2.6 machine.

Show quoted text

This comes from Ken Hornstein. I was surprised it was not
in the 1.0.5 release, so I wanted to send it in case it wasn't

--- util/pty/update_utmp.c.orig Fri Feb 6 19:46:43 1998
+++ util/pty/update_utmp.c Mon Mar 16 17:39:08 1998
@@ -81,7 +81,11 @@

#ifndef NO_UT_PID
if (!strcmp (line, "/dev/console"))
+#if (defined(sun) && defined(__SVR4))
+ strncpy (ent.ut_id, "co", 4);
strncpy (ent.ut_id, "cons", 4);
else {
tmpx = line + strlen(line)-1;
if (*(tmpx-1) != '/') tmpx--; /* last two characters, unless it's a / */

Larry Schwimmer
Leland Systems Group
Show quoted text

Responsible-Changed-From-To: gnats-admin->krb5-unassigned
Responsible-Changed-By: raeburn
Responsible-Changed-When: Tue Jul 6 21:06:43 1999

Fixing up category etc.

Show quoted text
believed to be fixed by pty library rewrite in krb5-1.2.3