+++ /dev/null
---- proftpd-1.3.1rc3/contrib/mod_sql_mysql.c~ 2007-05-09 19:15:18.000000000 +0200
-+++ proftpd-1.3.1rc3/contrib/mod_sql_mysql.c 2007-08-20 15:49:54.000000000 +0200
-@@ -595,7 +595,7 @@
- }
-
- if (!conn_pool) {
-- pr_log_pri(PR_LOG_WARNING, "warning: the mod_sql_mysql module has not been
-+ pr_log_pri(PR_LOG_WARNING, "warning: the mod_sql_mysql module has not been"
- "properly intialized. Please make sure your --with-modules configure "
- "option lists mod_sql *before* mod_sql_mysql, and recompile.");
-
+--- proftpd-1.3.1/src/log.c 2008-01-08 22:33:30.946409026 +0200
++++ proftpd-1.3.1rc3/src/log.c 2007-02-15 18:54:09.000000000 +0200
+@@ -117,7 +117,7 @@
+ utx.ut_exit.e_exit = 0;
+ #endif /* HAVE_UT_UT_EXIT */
+ if (write(fdx, (char *)&utx, sizeof(utx)) != sizeof(utx))
+- (void) ftruncate(fdx, buf.st_size);
++ ftruncate(fdx, buf.st_size);
+
+ } else {
+ pr_log_debug(DEBUG0, "%s fstat(): %s", WTMPX_FILE, strerror(errno));
diff -ur proftpd-1.3.1rc2/acconfig.h proftpd-1.3.1rc2.wtmpx/acconfig.h
--- proftpd-1.3.1rc2/acconfig.h 2002-12-15 19:05:09.000000000 +0100
+++ proftpd-1.3.1rc2.wtmpx/acconfig.h 2007-08-20 14:44:18.000000000 +0200
- if (fd < 0 &&
- (fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) {
+ if (write(fdx, (char *)&utx, sizeof(utx)) != sizeof(utx))
-+ ftruncate(fdx, buf.st_size);
++ (void )ftruncate(fdx, buf.st_size);
+ } else {
+ pr_log_debug(DEBUG0, "%s fstat(): %s", wtmpx_file, strerror(errno));
+ res = -1;
# TODO
# - mod_caps uses uname -r for detection
+# - don't use internal libltdl
#
# Conditional build:
%bcond_without pam # disable PAM support
%bcond_without quotamysql # disable quota mysql support
%bcond_without quotapgsql # disable quota pgsql support
#
-%define _rc rc3
Summary: PROfessional FTP Daemon with apache-like configuration syntax
Summary(es.UTF-8): Servidor FTP profesional, con sintaxis de configuración semejante a la del apache
Summary(pl.UTF-8): PROfesionalny serwer FTP
Summary(zh_CN.UTF-8): 易于管理的,安全的 FTP 服务器
Name: proftpd
Version: 1.3.1
-Release: 0.%{_rc}.2
+Release: 1
Epoch: 2
License: GPL v2+
Group: Daemons
-Source0: ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}%{_rc}.tar.bz2
-# Source0-md5: 485af3aee9ecebfeae1ae2003250a3a9
+Source0: ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}.tar.bz2
+# Source0-md5: 175958df8de92d5209b7b1e2e23a5a28
Source1: %{name}.conf
Source3: ftp.pamd
Source4: %{name}.inetd
Patch3: %{name}-wtmp.patch
Patch4: %{name}-configure.patch
Patch5: %{name}-pool.patch
-Patch6: %{name}-mysql-typo.patch
URL: http://www.proftpd.org/
BuildRequires: autoconf
BuildRequires: automake
%endif
BuildRequires: ncurses-devel
%if %{with ldap} || %{with quotaldap}
-BuildRequires: openldap-devel >= 2.4.6
+BuildRequires: openldap-devel
%endif
%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
%{?with_pam:BuildRequires: pam-devel}
%patch3 -p1
%patch4 -p1
%patch5 -p1
-%patch6 -p1
cp -f /usr/share/automake/config.sub .