[2082] in Kerberos-V5-bugs

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

K5b6 Minor bsd changes

daemon@ATHENA.MIT.EDU (Doug Engert)
Mon Jul 8 14:59:22 1996

Date: Mon, 8 Jul 1996 13:59:16 -0500
From: Doug Engert <DEEngert@anl.gov>
To: krb5-bugs@MIT.EDU


Here are two minor changes to the appl/bsd routines.
appl/bsd/kcmd.c on the HPUX complained about the typedef of the
parameters to the setresuid routine.

The appl/bsd/krsh.c has the #endif /* KERBEROS */ in the wrong
place, thus negating the setting of s_port to 544 as a default.

*** ./appl/bsd/,kcmd.c  Wed Apr 10 23:26:16 1996
--- ./appl/bsd/kcmd.c   Mon Jun 10 16:01:59 1996
***************
*** 597,605 ****
  
  #if defined (hpux)
  int setreuid(real,eff)
!      int real,eff;
  {
!     int tmpint = -1;
      return(setresuid(real,eff,tmpint));
  }
  #endif
--- 597,605 ----
  
  #if defined (hpux)
  int setreuid(real,eff)
!      uid_t real,eff;
  {
!     uid_t tmpint = -1;
      return(setresuid(real,eff,tmpint));
  }
  #endif
*** ./appl/bsd/,krsh.c  Tue Apr 30 22:17:14 1996
--- ./appl/bsd/krsh.c   Mon Jun 17 08:28:23 1996
***************
*** 325,332 ****
    sp->s_port = htons(544);
  #else
    fprintf(stderr, "rsh: shell/tcp: unknown service\n");
- #endif /* KERBEROS */
    exit(1);
        }
 
        debug_port = sp->s_port;
--- 325,332 ----
    sp->s_port = htons(544);
  #else
    fprintf(stderr, "rsh: shell/tcp: unknown service\n");
    exit(1);
+ #endif /* KERBEROS */
        }
 
        debug_port = sp->s_port;

 
 Douglas E. Engert  <DEEngert@anl.gov>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439 
 (708) 252-5444
 PGP Key fingerprint =  20 2B 0C 78 43 8A 9C A6  29 F7 A3 6D 5E 30 A6 7F









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