From 57117929a692e59ca4d534fe8014d25362061757 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 12 Feb 1991 14:03:17 +0000 Subject: [PATCH] now use int flag to scc_open_file add file format version code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1667 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/stdio/scc_sseq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/ccache/stdio/scc_sseq.c b/src/lib/krb5/ccache/stdio/scc_sseq.c index cab7c9d7a..0716f373f 100644 --- a/src/lib/krb5/ccache/stdio/scc_sseq.c +++ b/src/lib/krb5/ccache/stdio/scc_sseq.c @@ -44,8 +44,9 @@ krb5_scc_start_seq_get(id, cursor) return KRB5_CC_NOMEM; /* Make sure we start reading right after the primary principal */ - MAYBE_OPEN (id, "r"); - fseek(((krb5_scc_data *) id->data)->file, 0, 0); + MAYBE_OPEN (id, SCC_OPEN_RDONLY); + /* skip over vno at beginning of file */ + fseek(((krb5_scc_data *) id->data)->file, sizeof(krb5_int16), 0); krb5_scc_skip_principal(id); fcursor->pos = ftell(((krb5_scc_data *) id->data)->file); -- 2.26.2