--- pure-ftpd-1.0.24/src/caps_p.h~ 2009-10-24 11:45:57.000000000 +0200
+++ pure-ftpd-1.0.24/src/caps_p.h 2009-11-13 00:05:52.489631491 +0100
-@@ -14,7 +14,8 @@
+@@ -13,7 +13,8 @@
+ CAP_NET_BIND_SERVICE,
CAP_SYS_CHROOT,
CAP_SYS_NICE,
- CAP_NET_ADMIN,
- CAP_DAC_READ_SEARCH
+ CAP_DAC_READ_SEARCH,
-+ CAP_AUDIT_WRITE
++ CAP_AUDIT_WRITE
};
cap_value_t cap_keep_login[] = {
+
+++ /dev/null
-diff -urN pure-ftpd-1.0.20.org/src/ls.c pure-ftpd-1.0.20/src/ls.c
---- pure-ftpd-1.0.20.org/src/ls.c 2004-02-29 22:49:27.000000000 +0100
-+++ pure-ftpd-1.0.20/src/ls.c 2005-02-18 00:42:08.000000000 +0100
-@@ -245,6 +245,20 @@
- st.st_mode &= ~S_IFLNK;
- st.st_mode |= S_IFDIR;
- } /* Hack to please some Windows client that dislike ../ -> ../ */
-+ if (S_ISLNK(st.st_mode)) {
-+ char ms[MAXPATHLEN + 1U];
-+ struct stat sts;
-+ int sx;
-+
-+ if ((sx = readlink(name, ms, sizeof ms - 1U)) > 0)
-+ if (stat(name, &sts) == 0) {
-+ if (!S_ISLNK(sts.st_mode))
-+ st.st_mode = sts.st_mode;
-+ /* don't show if owner mismatch */
-+ if (geteuid() != sts.st_uid)
-+ return 0;
-+ }
-+ } /* Hack to show symlinks as files/directories */
- #endif
- #ifdef DISPLAY_FILES_IN_UTC_TIME
- t = gmtime((time_t *) &st.st_mtime);
Summary: Small, fast and secure FTP server
Summary(pl.UTF-8): Mały, szybki i bezpieczny serwer FTP
Name: pure-ftpd
-Version: 1.0.24
+Version: 1.0.27
Release: 2%{?with_extra:extra}
Epoch: 0
License: BSD-like%{?with_extra:, GLPv2 for pure-config due to libcfg+ license}
Group: Daemons
Source0: ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: 2f0869166ddb3a9cbe5e4887eae6e74d
+# Source0-md5: 7d18544384aa1649d483ba86518ed34e
Source1: %{name}.pamd
Source2: %{name}.init
Source3: %{name}.sysconfig
Patch1: %{name}-path_to_ssl_cert_in_config.patch
Patch2: %{name}-pure-pw_passwd.patch
Patch3: %{name}-mysql_config.patch
-Patch4: %{name}-nosymlinks-hideuidmismatch.patch
Patch5: %{name}-passwd_location.patch
Patch6: %{name}-additionalgid.patch
Patch7: audit_cap.patch
%setup -q -a 5
%patch0 -p0
%patch3 -p1
-%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1