diff options
Diffstat (limited to 'www/curl/patches/patch-ab')
-rw-r--r-- | www/curl/patches/patch-ab | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/www/curl/patches/patch-ab b/www/curl/patches/patch-ab new file mode 100644 index 00000000000..c137c2154d4 --- /dev/null +++ b/www/curl/patches/patch-ab @@ -0,0 +1,20 @@ +$NetBSD: patch-ab,v 1.2.4.2 2002/08/25 21:22:22 jlam Exp $ + +--- lib/ftp.c.orig Mon Apr 29 11:57:25 2002 ++++ lib/ftp.c Fri Jul 19 04:22:35 2002 +@@ -1576,12 +1576,13 @@ + + #ifdef HAVE_STRFTIME + if(data->set.get_filetime && data->info.filetime) { ++ time_t filetime = data->info.filetime; + struct tm *tm; + #ifdef HAVE_LOCALTIME_R + struct tm buffer; +- tm = (struct tm *)localtime_r(&data->info.filetime, &buffer); ++ tm = (struct tm *)localtime_r(&filetime, &buffer); + #else +- tm = localtime((unsigned long *)&data->info.filetime); ++ tm = localtime(&filetime); + #endif + /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */ + strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S %Z\r\n", |