diff --git a/NEWS b/NEWS index a3ae3c38..04c9372b 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,10 @@ Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, See the end for copying conditions. Please send GNU Wget bug reports to . +* Changes in Wget X.Y.Z + +** Now --version works again. + * Changes in Wget 1.13.3 diff --git a/src/ChangeLog b/src/ChangeLog index d68ef744..b6fe0595 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-09-02 Mojca Miklavec (tiny change) + + * main.c (print_version): Do not exit prematurely when --version is passed. + 2011-08-30 Giuseppe Scrivano * gnutls.c (wgnutls_read_timeout): Use the non blocking socket only for diff --git a/src/main.c b/src/main.c index ff5e6afa..9b704d1f 100644 --- a/src/main.c +++ b/src/main.c @@ -824,7 +824,7 @@ print_version (void) 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++;