Package: wget Version: 1.14-1 Severity: important Tags: upstream Seems to be addressed by the maintainers, but not shipped with a release. Hence pasting again here.
copy&paste from here: http://lists.gnu.org/archive/html/bug-wget/2012-11/msg00026.html The Yocto Project's sanity checks for connectivity fail on Debian unstable, as the current wget -c reports a write error for an already fully retrieved file. (Yocto is an OpenEmbedded-based system builder suite.) This issue might depend on server behaviour, so please test with the URL provided below. Steps to reproduce: 1. Download file from yocto server $ wget 'https://eula-downloads.yoctoproject.org/index.php' ... 2012-11-13 19:23:37 (146 KB/s) - ‘index.php’ saved [105711] 2. Download same file from yocto server with -c $ wget -c 'https://eula-downloads.yoctoproject.org/index.php' ... Cannot write to ‘index.php’ (Resource temporarily unavailable). $ echo $? 3 -- System Information: Debian Release: wheezy/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages wget depends on: ii dpkg 1.16.9 ii install-info 4.13a.dfsg.1-10 ii libc6 2.13-36 ii libgcrypt11 1.5.0-3 ii libgnutls26 2.12.20-1 ii libgpg-error0 1.10-3.1 ii libidn11 1.25-2 ii libuuid1 2.20.1-5.2 ii zlib1g 1:1.2.7.dfsg-13 wget recommends no packages. wget suggests no packages. -- no debconf information
Index: wget-1.14/src/retr.c =================================================================== --- wget-1.14.orig/src/retr.c 2012-12-26 02:39:24.276426633 +0100 +++ wget-1.14/src/retr.c 2012-12-26 02:39:56.072427448 +0100 @@ -376,7 +376,7 @@ { sum_read += ret; int write_res = write_data (out, out2, dlbuf, ret, &skip, &sum_written); - if (write_res != 0) + if (write_res < 0) { ret = (write_res == -3) ? -3 : -2; goto out;