rpms/pure-ftpd/EL-5 pure-ftpd-1.0.21-utime.patch, NONE, 1.1 pure-ftpd.spec, 1.15, 1.16

Lubomir Rintel lkundrak at fedoraproject.org
Fri May 8 17:00:05 UTC 2009


Author: lkundrak

Update of /cvs/pkgs/rpms/pure-ftpd/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24633

Modified Files:
	pure-ftpd.spec 
Added Files:
	pure-ftpd-1.0.21-utime.patch 
Log Message:
* Fri May 08 2008 Lubomir Rintel <lkundrak at v3.sk> - 1.0.21-16
- Fix SITE UTIME (Nickolay Bunev, #498431)


pure-ftpd-1.0.21-utime.patch:

--- NEW FILE pure-ftpd-1.0.21-utime.patch ---
--- pure-ftpd-1.0.21.orig/src/ftpd.c	2009-04-30 13:39:37.000000000 +0300
+++ pure-ftpd-1.0.21/src/ftpd.c	2009-04-30 13:40:55.000000000 +0300
@@ -2541,7 +2541,7 @@
     tm.tm_mon--;
     tm.tm_year -= 1900;
     if (tm.tm_mon < 0 || tm.tm_year <= 0 ||
-	(ts = mktime(&tm)) == (time_t) -1) {
+	(ts = timegm(&tm)) == (time_t) -1) {
 	addreply_noformat(501, MSG_TIMESTAMP_FAILURE);
 	return;
     }


Index: pure-ftpd.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pure-ftpd/EL-5/pure-ftpd.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- pure-ftpd.spec	23 Apr 2008 07:33:45 -0000	1.15
+++ pure-ftpd.spec	8 May 2009 16:59:35 -0000	1.16
@@ -1,6 +1,6 @@
 Name:       pure-ftpd
 Version:    1.0.21
-Release:    15%{?dist}
+Release:    16%{?dist}
 Summary:    Lightweight, fast and secure FTP server
 
 Group:      System Environment/Daemons
@@ -17,6 +17,7 @@ Source7:    pure-ftpd.pureftpd.te
 Patch0:     pure-ftpd-1.0.21-config.patch
 Patch1:     pure-ftpd-1.0.20-libdir.patch
 Patch2:     pure-ftpd-paminclude.patch
+Patch3:     pure-ftpd-1.0.21-utime.patch
 Provides:   ftpserver
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  pam-devel, perl, python, libcap-devel
@@ -74,6 +75,7 @@ Pure-FTPd to be protected in the same wa
 %patch0 -p0 -b .config
 %patch1 -p0 -b .libdir
 %patch2 -p0 -b .paminclude
+%patch3 -p0 -b .utime
 install -pm 644 %{SOURCE6} README.SELinux
 mkdir selinux
 cp -p %{SOURCE7} selinux/pureftpd.te
@@ -253,6 +255,9 @@ fi
 
 
 %changelog
+* Fri May 08 2008 Lubomir Rintel <lkundrak at v3.sk> - 1.0.21-16
+- Fix SITE UTIME (Nickolay Bunev, #498431)
+
 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1.0.21-15
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list