Skip Menu |
 

Download (untitled) / with headers
text/plain 2.4KiB
From mvachhar@pythagoras.rutgers.edu Tue Feb 3 20:56:16 1998
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id UAA16729 for <bugs@RT-11.MIT.EDU>; Tue, 3 Feb 1998 20:56:15 -0500
Received: from pythagoras.rutgers.edu by MIT.EDU with SMTP
id AA09037; Tue, 3 Feb 98 20:56:27 EST
Received: (from mvachhar@localhost)
by pythagoras.rutgers.edu (8.8.5/8.8.5) id UAA31284;
Tue, 3 Feb 1998 20:56:15 -0500
Message-Id: <199802040156.UAA31284@pythagoras.rutgers.edu>
Date: Tue, 3 Feb 1998 20:56:15 -0500
From: Manish Vachharajani <mvachhar@pythagoras.rutgers.edu>
Reply-To: mvachhar@pythagoras.rutgers.edu
To: krb5-bugs@MIT.EDU
Subject: ptyXX pty's are never found
X-Send-Pr-Version: 3.99

Show quoted text
>Number: 544
>Category: pty
>Synopsis: ptyXX pty's are never found
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: hartmans
>State: closed
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Tue Feb 03 20:57:01 EST 1998
>Last-Modified: Sun Feb 22 21:11:19 EST 1998
>Originator: Manish Vachharajani
>Organization:
Manish Vachharajani <mvachhar@noc.rutgers.edu>
Rutgers University http://www.rutgers.net/~mvachhar
Telecommunications Division
Systems Programmer
Show quoted text
>Release: krb5-1.0.4
>Environment:

System: Linux pythagoras.rutgers.edu 2.0.30 #1 Tue Apr 22 11:32:12 EDT 1997 sparc unknown
Architecture: sparc

Show quoted text
>Description:
The ptyXX ptys are never found since it looks for ptyXp0 etc.
Show quoted text
>How-To-Repeat:
Just use telnetd or rlogind on a machine with no /dev/pty or equivalent, no
openpty etc. It will fail to find any pty's and return an error
Show quoted text
>Fix:

Here is a patch

--- krb5-1.0.4/src/util/pty/getpty.c.orig Tue Feb 3 16:41:22 1998
+++ krb5-1.0.4/src/util/pty/getpty.c Tue Feb 3 16:41:39 1998
@@ -111,8 +111,8 @@
} else {
for (cp = "pqrstuvwxyzPQRST";*cp; cp++) {
sprintf(slavebuf,"/dev/ptyXX");
- slavebuf[sizeof("/dev/pty")] = *cp;
- slavebuf[sizeof("/dev/ptyp")] = '0';
+ slavebuf[sizeof("/dev/pty") - 1 ] = *cp;
+ slavebuf[sizeof("/dev/ptyp") - 1 ] = '0';
if (stat(slavebuf, &stb) < 0)
break;
for (i = 0; i < 16; i++) {



Show quoted text
>Audit-Trail:

State-Changed-From-To: open-closed
State-Changed-By: tlyu
State-Changed-When: Sun Feb 22 21:11:09 1998
State-Changed-Why:

Already fixed

Show quoted text
>Unformatted: