From f47c06a197bb872f095a5326bb93d6c33363352a Mon Sep 17 00:00:00 2001 From: des Date: Mon, 11 Jun 2001 14:12:46 +0000 Subject: Don't call _ftp_closefn() upon EOF in _ftp_readfn(); just return 0. This fixes a bug in pkg_add(1) (which nobody noticed because of another bug). --- lib/libfetch/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libfetch') diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index ff7bf86..f1ffbf2 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -349,7 +349,7 @@ _ftp_readfn(void *v, char *buf, int len) return r; if (r == 0) { io->eof = 1; - return _ftp_closefn(v); + return 0; } if (errno != EINTR) io->err = errno; -- cgit v1.1