now use int flag to scc_open_file
authorJohn Kohl <jtkohl@mit.edu>
Tue, 12 Feb 1991 14:03:17 +0000 (14:03 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 12 Feb 1991 14:03:17 +0000 (14:03 +0000)
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

index cab7c9d7afbbe8b94a0a2ac3194c977df3660483..0716f373f2390da7d108c73e761966a622d68ca5 100644 (file)
@@ -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);