From: Theodore Tso Date: Thu, 16 Jun 1994 05:20:50 +0000 (+0000) Subject: Change use of tell(x) to lseek(x, 0, SEEK_CUR) X-Git-Tag: krb5-1.0-beta4~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d3b91242dcab55ff26052b1cb1832528fe561596;p=krb5.git Change use of tell(x) to lseek(x, 0, SEEK_CUR) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3839 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/file/fcc_nseq.c b/src/lib/krb5/ccache/file/fcc_nseq.c index d83746221..a76f07c48 100644 --- a/src/lib/krb5/ccache/file/fcc_nseq.c +++ b/src/lib/krb5/ccache/file/fcc_nseq.c @@ -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: diff --git a/src/lib/krb5/ccache/file/fcc_sseq.c b/src/lib/krb5/ccache/file/fcc_sseq.c index fd154e511..0a3e13145 100644 --- a/src/lib/krb5/ccache/file/fcc_sseq.c +++ b/src/lib/krb5/ccache/file/fcc_sseq.c @@ -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);