diff options
| author | John Kohl <jtkohl@mit.edu> | 1991-02-12 14:03:17 +0000 |
|---|---|---|
| committer | John Kohl <jtkohl@mit.edu> | 1991-02-12 14:03:17 +0000 |
| commit | 57117929a692e59ca4d534fe8014d25362061757 (patch) | |
| tree | a166de1969843fa57ebbb1a54279f6e673a3d14e /src | |
| parent | 604c902c2092e2fffd5c595e52c3212aa1777c0f (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/ccache/stdio/scc_sseq.c | 5 |
1 files 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); |
