From d3b91242dcab55ff26052b1cb1832528fe561596 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 16 Jun 1994 05:20:50 +0000 Subject: [PATCH] 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 --- src/lib/krb5/ccache/file/fcc_nseq.c | 2 +- src/lib/krb5/ccache/file/fcc_sseq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.26.2