bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Writing to a Read-Only directory


From: Tim Ruehsen
Subject: Re: [Bug-wget] Writing to a Read-Only directory
Date: Thu, 11 Feb 2016 10:56:27 +0100
User-agent: KMail/4.14.10 (Linux/4.3.0-1-amd64; KDE/4.14.14; x86_64; ; )

Thanks for reporting back, Gisle.

The change has been pushed.

Tim

On Thursday 11 February 2016 10:36:37 Gisle Vanem wrote:
> > But of course, if you assume anything going wrong in
> > check_redirect_output() then we have to restore errno directly after it
> > returns. 'goto quit' is IMHO not needed. CHECK_VERBOSE() doesn't change
> > errno.
> 
> > That is IMO a bit less code changes, WDYT:
> Much better now, thanks. I get:
>   ASMBSW.dll: Permission denied
>   Cannot write to 'ASMBSW.dll' (Bad file descriptor).
> 
> The latter seems to happen in Gnulib's 'do_fwriteerror (fp, false)'.
> 
> Anyway, doing the same in a normal Read-Write directory but
> on a Read-Only file, I get the expected error-message:
> 
>   c:\temp> attrib +r ASMBSW.dll
>   c:\temp> wget -O ASMBSW.dll http://www.watt-32.net/misc/ASMBSW.dll
>   wget: ASMBSW.dll: Permission denied



reply via email to

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