+Wed Sep 13 10:57:08 1995 Keith Vetter (keithv@fusion.com)
+
+ * ser_ktf.c: Added MSDOS to wherever MACINTOSH was used.
+
Mon Sep 11 21:22:44 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* ser_ktf.c (krb5_ktf_keytab_externalize): On Macintosh, keytab
if (ktdata) {
if (ktdata->openf) {
long fpos;
- int fflags;
+ int fflags = 0;
file_is_open = 1;
-#ifndef _MACINTOSH
+#if !defined( _MACINTOSH) && !defined(_MSDOS)
fflags = fcntl(fileno(ktdata->openf), F_GETFL, 0);
if (fflags > 0)
file_is_open |= ((fflags & O_ACCMODE) << 1);
(void) krb5_ser_unpack_int32(&foffbuf[1],
&bp, &remain);
(void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
- ktdata->version = ibuf;
+ ktdata->version = (int) ibuf;
(void) krb5_ser_unpack_int32(&ibuf, &bp, &remain);
if (ibuf == KV5M_KEYTAB) {
int fmode;
long fpos;
-#ifndef _MACINTOSH
+#if !defined( _MACINTOSH) && !defined(_MSDOS)
fmode = (file_is_open >> 1) & O_ACCMODE;
#else
fmode = 0;