Change use of tell(x) to lseek(x, 0, SEEK_CUR)
authorTheodore Tso <tytso@mit.edu>
Thu, 16 Jun 1994 05:20:50 +0000 (05:20 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 16 Jun 1994 05:20:50 +0000 (05:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3839 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/file/fcc_nseq.c
src/lib/krb5/ccache/file/fcc_sseq.c

index d83746221cea2e4679ec64cd29e362635c0ea64d..a76f07c483ea2c1d925a89c9996d86ee8c320b64 100644 (file)
@@ -98,7 +98,7 @@ krb5_fcc_next_cred(id, cursor, creds)
      kret = krb5_fcc_read_data(id, &creds->second_ticket);
      TCHECK(kret);
      
-     fcursor->pos = tell(((krb5_fcc_data *) id->data)->fd);
+     fcursor->pos = lseek(((krb5_fcc_data *) id->data)->fd, 0, SEEK_CUR);
      cursor = (krb5_cc_cursor *) fcursor;
 
 lose:
index fd154e5110e976626e80090d1fab7869b71e3e5e..0a3e1314584edd805e09d3d589a65b64e8983572 100644 (file)
@@ -70,7 +70,7 @@ krb5_fcc_start_seq_get(id, cursor)
      /* Make sure we start reading right after the primary principal */
 
      krb5_fcc_skip_principal(id);
-     fcursor->pos = tell(((krb5_fcc_data *) id->data)->fd);
+     fcursor->pos = lseek(((krb5_fcc_data *) id->data)->fd, 0, SEEK_CUR);
      *cursor = (krb5_cc_cursor) fcursor;
 
      MAYBE_CLOSE(id, ret);