bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Download files and preserve their data and time


From: Ray Satiro
Subject: Re: [Bug-wget] Download files and preserve their data and time
Date: Tue, 23 Aug 2011 22:59:05 -0700 (PDT)

--- On Tue, 8/23/11, David H. Lipman <address@hidden> wrote:

> From: David H. Lipman <address@hidden>
> Subject: Re: [Bug-wget] Download files and preserve their data and time
> To: address@hidden
> Date: Tuesday, August 23, 2011, 4:38 PM
> From: "Giuseppe Scrivano" <address@hidden>
> 
> >
> >> WinXP/Vista -- Win32
> >>
> >> Y:\>wget --version
> >> GNU Wget 1.12-2504 built on mingw32.
> >
> > the change introduced by the revision
> > address@hidden
> could be the reason of
> > the problem you have reported.

Calling utime() works. You could also use SetFileTime(). 2489 changed utime to 
utimes but the CRT doesn't have utimes. 

I recompiled 1.13.1 and patched for the http.c fixes from 2544 and 2541, and 
patched utils using the touch() prior to 2489 for WINDOWS. This is a test build 
and I uploaded it here:
http://sourceforge.net/projects/getgnuwin32/files/getgnuwin32/test%20builds/wget-1.13.1.patched.zip/download

I tried Giuseppe's example:

>wget -q -d http://www.gnu.org/graphics/gnu-head-mini.png 2>&1 | grep ^Last-Mo
Last-Modified: Sun, 05 Dec 2010 20:58:51 GMT

>dir /tw gnu-head-mini.png
[...]
12/05/2010  03:58 PM               423 gnu-head-mini.png


Also I notice the changes in 2533 require static openssl libs for testing
checking for EVP_MD_CTX_init in -leay32... yes
checking for SSL_connect in -lssl32... yes
configure: Enabling support for SSL via OpenSSL (shared)
checking for libssl... no
configure: error: --with-ssl=openssl was given, but SSL is not available.

I think regardless of whether libssl is there if eay32 and ssl32 are there then 
it should link to the dlls and not need to test ssl and crypto.

Thanks

Attachment: utils.patch
Description: Text Data


reply via email to

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