diff options
author | des <des@FreeBSD.org> | 2001-06-11 14:12:46 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-06-11 14:12:46 +0000 |
commit | f47c06a197bb872f095a5326bb93d6c33363352a (patch) | |
tree | 20728856dbea35f7aa9eee88d2128ca7f26fe1e0 /lib/libfetch/ftp.c | |
parent | 5f8a4bf5ab28d162b4d59738aca0f347c6a5f4ba (diff) | |
download | FreeBSD-src-f47c06a197bb872f095a5326bb93d6c33363352a.zip FreeBSD-src-f47c06a197bb872f095a5326bb93d6c33363352a.tar.gz |
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).
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r-- | lib/libfetch/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |