From 970ab2677a83166069769bf7040a813fa9ea1fe5 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 8 Aug 2009 16:10:27 +0200 Subject: [PATCH] Use 64 bit ftell and fseek in send_bootstrap_file --- bacula/src/dird/restore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bacula/src/dird/restore.c b/bacula/src/dird/restore.c index 82f798021a..e852edfe4c 100644 --- a/bacula/src/dird/restore.c +++ b/bacula/src/dird/restore.c @@ -231,7 +231,7 @@ static bool check_for_new_storage(JCR *jcr, struct bootstrap_info &info) static bool send_bootstrap_file(JCR *jcr, BSOCK *sock, struct bootstrap_info &info) { - uint64_t pos; + boffset_t pos; const char *bootstrap = "bootstrap\n"; UAContext *ua = info.ua; FILE *bs = info.bs; @@ -241,17 +241,17 @@ static bool send_bootstrap_file(JCR *jcr, BSOCK *sock, return false; } sock->fsend(bootstrap); - pos = ftell(bs); + pos = ftello(bs); while(fgets(ua->cmd, UA_CMD_SIZE, bs)) { if (check_for_new_storage(jcr, info)) { /* Otherwise, we need to contact another storage daemon. * Reset bs to the beginning of the current segment. */ - fseek(bs, pos, SEEK_SET); + fseeko(bs, pos, SEEK_SET); break; } sock->fsend("%s", ua->cmd); - pos = ftell(bs); + pos = ftello(bs); } sock->signal(BNET_EOD); return true; -- 2.39.5