[606] in Kerberos-V5-bugs

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

Kerberos 5 on SunOS 4.1.3.

daemon@ATHENA.MIT.EDU (L. Adrian Griffis)
Wed Jul 27 17:18:36 1994

From: adrian@ada1.elan.af.mil (L. Adrian Griffis)
To: krb5-bugs@MIT.EDU
Cc: adrian@ada1.elan.af.mil
Date: Wed, 27 Jul 94 13:59:51 PDT

I've found a couple of minor problems on Kerberos as compiled on our local
Suns.

  1)  BSDSIGS does not get defined.  This seems to lead to a conflict between
      various system and package signal handling functions.  I've modified
      The central Makefile to pass "-DBSDSIGS" to all compiles.

  2)  The macro "ANSI_STDIO" is defined (I have not investigated the reason
      for this).  In "lib/krb5/keytab/file/ktf_util.c", on line 99, this macro
      causes the static variable fopen_mode_rbplus  to point to the string
      constant "rb+".  When this string is passed to fopen(), the 'r' is found,
      and recognized, but the 'b' is not supported.  fopen() stops processing
      the mode string at this point, and never finds the '+'.  The causes the
      file (the keytab) to be opened read only.

      I've changed line 99 to read:

	  #if defined(ANSI_STDIO) && !defined(NO_BINARY_OPEN)

      It's not clear to me that this is the best solution, but it got me
      past the problem.

I hope this helps.

       -.. .   -.- . -.... -.-. ... -..-   -.-
                                        L. Adrian Griffis
                                        adrian@ada1.elan.af.mil

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