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/

Reply via email to