From: John Kohl Date: Tue, 12 Feb 1991 14:03:17 +0000 (+0000) Subject: now use int flag to scc_open_file X-Git-Tag: krb5-1.0-alpha4~305 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57117929a692e59ca4d534fe8014d25362061757;p=krb5.git 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 --- 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);