Hello,
I'm on Archlinux x86_64. After updating the system with the help of
package manager wget aborts on simple `wget --version' with exit code
3.
Seems I found the reason of that behavior, I attached with the message
a patch vs. bzr trunk (revno 2555).
I checked it on top of wget 1.13.3 (patching release source).
---
WBR, Vladimir Lomov
=== modified file 'src/main.c'
--- src/main.c 2011-08-27 09:19:24 +0000
+++ src/main.c 2011-09-02 10:40:57 +0000
@@ -824,7 +824,7 @@
int line_length = MAX_CHARS_PER_LINE;
while ((line_length > 0) && (compiled_features[i] != NULL))
{
- if (printf ("%s ", compiled_features[i]))
+ if (printf ("%s ", compiled_features[i]) < 0)
exit (3);
line_length -= strlen (compiled_features[i]) + 2;
i++;