diff options
-rw-r--r-- | ftpfs/ccache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ftpfs/ccache.c b/ftpfs/ccache.c index 88299027..c942378a 100644 --- a/ftpfs/ccache.c +++ b/ftpfs/ccache.c @@ -164,12 +164,13 @@ ccache_read (struct ccache *cc, off_t offs, size_t len, void *data) } else { - cc->max += rd; cc->data_conn_pos += rd; + if (cc->data_conn_pos > cc->max) + cc->max = cc->data_conn_pos; } } - if (!err && hurd_check_cancel ()) + if (!err && ports_self_interrupted ()) err = EINTR; } |