[1403] in Kerberos-V5-bugs

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

Kerberis 5.5 and Solaris 2.3 Rlogind

daemon@ATHENA.MIT.EDU (Doug Engert)
Fri May 12 11:02:16 1995

Date: Fri, 12 May 95 10:02:03 CDT
From: "Doug Engert" <DEEngert@anl.gov>
To: <krb5-bugs@MIT.EDU>

The krlogind process would hang on a Solaris 2.3 system. untill
the following fix was applied. Krlogind needs to use the ptsname()
routine rather then the ttyname() routine, enen though both are available.
Telnet does this, and it works.


*** ./appl/bsd/,krlogind.c  Wed May  3 02:46:06 1995
--- ./appl/bsd/krlogind.c   Thu May 11 09:26:01 1995
***************
*** 1429,1439 ****
    if (grantpt(*fd) || unlockpt(*fd)) return 1;
  #endif

! #ifdef    HAVE_TTYNAME
!   p = ttyname(*fd);
! #else
! #ifdef HAVE_PTSNAME
    p = ptsname(*fd);
  #else
   /* XXX If we don't have either what do we do */
  #endif
--- 1434,1444 ----
    if (grantpt(*fd) || unlockpt(*fd)) return 1;
  #endif

! #ifdef    HAVE_PTSNAME
    p = ptsname(*fd);
+ #else
+ #ifdef HAVE_TTYNAME
+   p = ttyname(*fd);
  #else
    /* XXX If we don't have either what do we do */
  #endif


The above switches the order of the ifdef to prefer the ptsname
over the ttyname.

           Douglas E. Engert
           Systems Programming
           Argonne National Laboratory
           9700 South Cass Avenue
           Argonne, Illinois  60439
           (708) 252-5444

           Internet: DEEngert@anl.gov

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