From 9e2a792c46c6dee96e1ac26377261604e14d13b0 Mon Sep 17 00:00:00 2001 From: Dag-Erling Smørgrav 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 ff7bf863c43c..f1ffbf2dda0a 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.3