[Bug-wget] [PATCH v5] bug #45790: wget prints it's progress even when background

2016-10-21 Thread losgrandes
Fixed trailing whitespace errors. Sorry for sending dirty patch. Should be good now. * src/log.c: Use tcgetpgrp(STDIN_FILENO) != getpgrp() to determine when to print to STD* or logfile. Deprecate log_request_redirect_output function. Use different file handles for STD* and logfile, to easily

[Bug-wget] [PATCH v4] bug #45790: wget prints it's progress even when background

2016-10-19 Thread losgrandes
* src/log.c: Use tcgetpgrp(STDIN_FILENO) != getpgrp() to determine when to print to STD* or logfile. Deprecate log_request_redirect_output function. Use different file handles for STD* and logfile, to easily switch between them when changing fg/bg. * src/log.h: Make redirect_output function e

[Bug-wget] [PATCH v2] bug #46584: wget --spider always returns zero exit status

2016-10-19 Thread losgrandes
* src/ftp.c: Return error as exit value if even one file doesn't exist --- src/ftp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ftp.c b/src/ftp.c index cc98ca3..77dc9cd 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1186,6 +1186,7 @@ Error in server response, clos

[Bug-wget] [PATCH v2] bug #48811: netrc password wins over interactive --ask-password

2016-10-19 Thread losgrandes
* src/ftp.c: Leverage new struct net_credentials and function pick_credentials. pick_credentials is responsible for taking proper order when selecting source of credentials. * src/http.c: Leverage new struct net_credentials and function pick_credentials. * src/utils.c: New function pick

[Bug-wget] [PATCH v3] bug #45790: wget prints it's progress even when background

2016-10-06 Thread losgrandes
I've updated patch to not run tcgetpgrp, getpgrp and isatty (for shell_is_interactive test) on windows. I have compiled and tested on linux and (mostly*) on windows. Should be ok. * - I was able to create working mingw env on linux, but cross-compilation worked for me only few times (I know, sil