bug-wget
[Top][All Lists]
Advanced

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

Re: Confusing "Success" error message


From: Darshit Shah
Subject: Re: Confusing "Success" error message
Date: Mon, 4 Nov 2019 00:19:33 +0100

Hi Francesco,

This issue has indeed been reported multiple times in the past. While it is
confusing, the text "Success" is out of our hands. It is the value of
`perror()` after we encounter that a system call resulted in the error.

For some reason the error string is still "Success" in these cases. It is
highly reproduceable as well. At some point I will try and dig deeper / contact
the libc upstream to see why this is happening.

* Francesco Turco <address@hidden> [191103 15:04]:
> Hello.
> 
> I'm using wget 1.20.3 on a Gentoo Linux system.
> 
> I obtain a confusing "Success" error message from wget when trying to 
> download any file into a write-protected directory.
> 
> Steps to reproduce:
> 1) mkdir test
> 2) chmod -w test
> 3) cd test
> 4) wget --no-config 
> https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm-sensors/lm-sensors-3.6.0.ebuild
> 
> This is the output of the last command:
> 
> > --2019-11-03 14:53:34--  
> > https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm-sensors/lm-sensors-3.6.0.ebuild
> > Resolving gitweb.gentoo.org... 108.28.123.238
> > Connecting to gitweb.gentoo.org|108.28.123.238|:443... connected.
> > HTTP request sent, awaiting response... 200 OK
> > Length: 6445 (6.3K) [text/plain]
> > lm-sensors-3.6.0.ebuild: Permission denied
> > 
> > Cannot write to ‘lm-sensors-3.6.0.ebuild’ (Success).
> 
> Exit status is 3 (File I/O error).
> 
> As far as I know you can try replacing the Gentoo ebuild I used with any 
> other file from the internet: the error message will be the same.
> 
> Why does wget use the word "success" when it's clearly a failure instead? Is 
> this a bug?
> 
> -- 
> https://fturco.net/
> 
> 

-- 
Thanking You,
Darshit Shah
PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6

Attachment: signature.asc
Description: PGP signature


reply via email to

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