bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] --debug causes "Setting --output-document" to repeat twic


From: Tim Rühsen
Subject: Re: [Bug-wget] --debug causes "Setting --output-document" to repeat twice
Date: Tue, 28 May 2019 16:28:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 5/28/19 5:15 AM, 積丹尼 Dan Jacobson wrote:
> Seen twice:
> 
> $ wget -d -O K $@
> Setting --output-document (outputdocument) to K
> Setting --output-document (outputdocument) to K
> 
> GNU Wget 1.20.1 built on linux-gnu.
> 

Thanks, fixed by applying the following patch:

diff --git a/src/log.c b/src/log.c
index 0e9ea9cd..32765e2a 100644
--- a/src/log.c
+++ b/src/log.c
@@ -483,7 +483,7 @@ log_vprintf_internal (struct logvprintf_state
*state, const char *fmt,
   if (save_context_p)
     saved_append (write_ptr);
   FPUTS (write_ptr, fp);
-  if (warcfp != NULL)
+  if (warcfp != NULL && warcfp != fp)
     FPUTS (write_ptr, warcfp);
   xfree (state->bigmsg);



Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]