diff --git a/.gitignore b/.gitignore index 634e49e..c2bc95d 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ lftp-4.0.10.tar.xz /lftp-4.6.5.tar.xz /lftp-4.7.0.tar.xz /lftp-4.7.1.tar.xz +/lftp-4.7.2.tar.xz diff --git a/lftp-4.0.9-date_fmt.patch b/lftp-4.0.9-date_fmt.patch index 50fe672..b63ac7a 100644 --- a/lftp-4.0.9-date_fmt.patch +++ b/lftp-4.0.9-date_fmt.patch @@ -1,7 +1,8 @@ -diff -up lftp-4.2.1/src/Http.cc.date_fmt lftp-4.2.1/src/Http.cc ---- lftp-4.2.1/src/Http.cc.date_fmt 2011-03-25 15:35:42.000000000 +0100 -+++ lftp-4.2.1/src/Http.cc 2011-03-30 14:40:54.170096624 +0200 -@@ -29,6 +29,7 @@ +diff --git a/src/Http.cc b/src/Http.cc +index 5364c94..0018670 100644 +--- a/src/Http.cc ++++ b/src/Http.cc +@@ -26,6 +26,7 @@ #include #include #include @@ -9,12 +10,12 @@ diff -up lftp-4.2.1/src/Http.cc.date_fmt lftp-4.2.1/src/Http.cc #include #include #include -@@ -565,15 +566,10 @@ void Http::SendRequest(const char *conne +@@ -744,15 +745,10 @@ void Http::SendRequest(const char *connection,const char *f) (long long)((limit==FILE_END || limit>entity_size ? entity_size : limit)-1), (long long)entity_size); } - if(entity_date!=NO_DATE) -+ if(entity_date!=NO_DATE && entity_date>0L && entity_date0L && entity_datetm_wday],t->tm_mday,month_names[t->tm_mon], - t->tm_year+1900,t->tm_hour,t->tm_min,t->tm_sec); -+ char d[256]; -+ strftime(d, sizeof(d), "%a, %d %b %H:%M:%S %Y GMT", gmtime(&entity_date)); ++ char d[256]; ++ strftime(d, sizeof(d), "%a, %d %b %H:%M:%S %Y GMT", gmtime(&entity_date)); Send("Last-Modified: %s\r\n",d); + Send("X-OC-MTime: %ld\r\n",(long)entity_date); // for OwnCloud } - break; diff --git a/lftp.spec b/lftp.spec index 6ee6cb9..5b98eed 100644 --- a/lftp.spec +++ b/lftp.spec @@ -1,6 +1,6 @@ Summary: A sophisticated file transfer program Name: lftp -Version: 4.7.1 +Version: 4.7.2 Release: 1%{?dist} License: GPLv3+ Group: Applications/Internet @@ -93,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu May 19 2016 Luboš Uhliarik - 4.7.2-1 +- new version 4.7.2 + * Mon Apr 04 2016 Luboš Uhliarik - 4.7.1-1 - new version 4.7.1 diff --git a/sources b/sources index 9f7d06b..bfecd43 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7dfb03c6544efeef633bc28ba7df8b77 lftp-4.7.1.tar.xz +24b64dcd74426803eb1e9bf75a5a590a lftp-4.7.2.tar.xz