|Subject:||Partial download (e.g. due to full filesystem) "succeeds"|
Downloading a file to a full filesystem "succeeds", but only part (if any) of the file is downloaded. The problem occurs under *at*least* the following: (From Perl) $lwp_ua->request($r, $filename) (From command line) lwp-download proto://server/file I'm using libwww-perl 5.69. Reproduced this behavior under AIX5.1/Perl5.6.0 and AIX5.3/Perl5.8.2. The problem occurs because the return code from print() is not being checked in *at*least* the following places: LWP/Protocol.pm line 230: print OUT $$content; lwp-download line 148: print FILE $_; print() sets $!, which can be used to return or exit with a graceful failure.