Skip to content

Commit

Permalink
Added MSDOS to wherever MACINTOSH was used.
Browse files Browse the repository at this point in the history
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6825 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
tytso committed Sep 23, 1995
1 parent 31748b5 commit c5768f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/lib/krb5/keytab/file/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
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
Expand Down
8 changes: 4 additions & 4 deletions src/lib/krb5/keytab/file/ser_ktf.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ krb5_ktf_keytab_externalize(kcontext, arg, buffer, lenremain)
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);
Expand Down Expand Up @@ -274,15 +274,15 @@ krb5_ktf_keytab_internalize(kcontext, argp, buffer, lenremain)
(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) {
if (file_is_open) {
int fmode;
long fpos;

#ifndef _MACINTOSH
#if !defined( _MACINTOSH) && !defined(_MSDOS)
fmode = (file_is_open >> 1) & O_ACCMODE;
#else
fmode = 0;
Expand Down

0 comments on commit c5768f4

Please sign in to comment.