Subject: Kerberos bug bites alpha port
To: None <port-alpha@NetBSD.ORG>
From: Tom I Helbekkmo <tih@nhh.no>
List: port-alpha
Date: 11/01/1996 23:24:38
There's a little bug in domestic/lib/libkrb/tf_util.c; a left-over
case of assuming that longs are four bytes.

*** tf_util.c.ORIG	Mon Dec 25 13:09:20 1995
--- tf_util.c	Fri Nov  1 22:55:20 1996
***************
*** 86,92 ****
   *              int             lifetime
   *              int             kvno
   *              KTEXT_ST        ticket_st
!  *              long            issue_date
   *
   * Short description of routines:
   *
--- 86,92 ----
   *              int             lifetime
   *              int             kvno
   *              KTEXT_ST        ticket_st
!  *              int32_t         issue_date
   *
   * Short description of routines:
   *
***************
*** 570,577 ****
      if (write(fd, (char *) (ticket->dat), count) != count)
  	goto bad;
      /* Issue date */
!     if (write(fd, (char *) &issue_date, sizeof(long))
! 	!= sizeof(long))
  	goto bad;
  
      /* Actually, we should check each write for success */
--- 570,577 ----
      if (write(fd, (char *) (ticket->dat), count) != count)
  	goto bad;
      /* Issue date */
!     if (write(fd, (char *) &issue_date, sizeof(issue_date))
! 	!= sizeof(issue_date))
  	goto bad;
  
      /* Actually, we should check each write for success */