Skip Menu |

Download (untitled) / with headers
text/plain 2.6KiB
From Mon Jan 6 23:53:16 1997
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU []) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id XAA27257 for <bugs@RT-11.MIT.EDU>; Mon, 6 Jan 1997 23:53:15 -0500
Received: from [] by MIT.EDU with SMTP
id AA11642; Mon, 6 Jan 97 23:53:15 EST
Received: from ( []) by (8.7.5/8.7.3) with ESMTP id XAA01779 for <>; Mon, 6 Jan 1997 23:53:10 -0500 (EST)
Received: (kenh@localhost) by (8.7.5/8.6.11) id XAA10643; Mon, 6 Jan 1997 23:53:13 -0500 (EST)
Message-Id: <>
Date: Mon, 6 Jan 1997 23:53:13 -0500 (EST)
From: Ken Hornstein <>
To: krb5-bugs@MIT.EDU
Subject: When using POSIX signals, rlogin doesn't clear them properly
X-Send-Pr-Version: 3.2

Show quoted text
>Number: 335
>Category: krb5-appl
>Synopsis: On systems with POSIX signals, rlogin doesn't clear them
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: krb5-unassigned
>State: closed
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Mon Jan 06 23:54:00 EST 1997
>Last-Modified: Fri Mar 28 01:08:06 EST 1997
>Originator: Ken Hornstein
Naval Research Lab
Show quoted text
>Release: 1.0

System: SunOS nexus 4.1.4 1 sun4m
Architecture: sun4

Show quoted text

Rlogin will try to run the regular Unix rlogin if the Kerberos one fails.
However, if your system supports POSIX signals, there is a subtle problem.

The Kerberos rlogin does not clear the signal mask before it tries running
the regular rlogin; as a result, some rlogins will not get SIGUSR1 during
startup and will not send the window size.
Show quoted text

Run Kerberos rlogin on a system that supports POSIX signals (like NetBSD)
to host that doesn't support Kerberos. Note that your window size isn't
Show quoted text

--- krlogin.c.orig Mon Jan 6 23:45:33 1997
+++ krlogin.c Mon Jan 6 23:46:53 1997
@@ -1570,6 +1570,10 @@
char **argv;
register char *host;
+ struct sigaction sa;
+ sigest_t mask;

if (encrypt_flag)
@@ -1587,6 +1591,11 @@
if (!strcmp(host, "rlogin"))

+ sigemptyset(&mask)
+ sigprocmask(SIG_SETMASK, &mask, NULL);
execv(UCB_RLOGIN, argv);
Show quoted text

State-Changed-From-To: open-closed
State-Changed-By: tytso
State-Changed-When: Fri Mar 28 01:07:49 1997
State-Changed-Why: Patch applied to mainline

Show quoted text