rpms/proftpd/devel proftpd-1.3.0a-open.patch, NONE, 1.1 proftpd.spec, 1.30, 1.31
Matthias Saou (thias)
fedora-extras-commits at redhat.com
Wed Aug 8 17:39:27 UTC 2007
Author: thias
Update of /cvs/extras/rpms/proftpd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16806
Modified Files:
proftpd.spec
Added Files:
proftpd-1.3.0a-open.patch
Log Message:
Include patch to fix "open" calls with recent glibc.
proftpd-1.3.0a-open.patch:
--- NEW FILE proftpd-1.3.0a-open.patch ---
diff -Naupr proftpd-1.3.0a.orig/src/fsio.c proftpd-1.3.0a/src/fsio.c
--- proftpd-1.3.0a.orig/src/fsio.c 2006-03-22 23:10:34.000000000 +0100
+++ proftpd-1.3.0a/src/fsio.c 2007-08-08 19:23:39.000000000 +0200
@@ -2450,7 +2450,7 @@ pr_fh_t *pr_fsio_open_canon(const char *
fs = fs->fs_next;
pr_log_debug(DEBUG9, "FS: using %s open()", fs->fs_name);
- fh->fh_fd = fs->open(fh, deref, flags);
+ fh->fh_fd = (fs->open)(fh, deref, flags);
if (fh->fh_fd == -1) {
destroy_pool(fh->fh_pool);
@@ -2490,7 +2490,7 @@ pr_fh_t *pr_fsio_open(const char *name,
fs = fs->fs_next;
pr_log_debug(DEBUG9, "FS: using %s open()", fs->fs_name);
- fh->fh_fd = fs->open(fh, name, flags);
+ fh->fh_fd = (fs->open)(fh, name, flags);
if (fh->fh_fd == -1) {
destroy_pool(fh->fh_pool);
diff -Naupr proftpd-1.3.0a.orig/src/netio.c proftpd-1.3.0a/src/netio.c
--- proftpd-1.3.0a.orig/src/netio.c 2004-10-09 22:46:22.000000000 +0200
+++ proftpd-1.3.0a/src/netio.c 2007-08-08 19:20:36.000000000 +0200
@@ -367,22 +367,22 @@ pr_netio_stream_t *pr_netio_open(pool *p
if (strm_type == PR_NETIO_STRM_CTRL) {
nstrm->strm_type = PR_NETIO_STRM_CTRL;
nstrm->strm_mode = mode;
- return ctrl_netio ? ctrl_netio->open(nstrm, fd, mode) :
- core_ctrl_netio->open(nstrm, fd, mode);
+ return ctrl_netio ? (ctrl_netio->open)(nstrm, fd, mode) :
+ (core_ctrl_netio->open)(nstrm, fd, mode);
}
if (strm_type == PR_NETIO_STRM_DATA) {
nstrm->strm_type = PR_NETIO_STRM_DATA;
nstrm->strm_mode = mode;
- return data_netio ? data_netio->open(nstrm, fd, mode) :
- core_data_netio->open(nstrm, fd, mode);
+ return data_netio ? (data_netio->open)(nstrm, fd, mode) :
+ (core_data_netio->open)(nstrm, fd, mode);
}
if (strm_type == PR_NETIO_STRM_OTHR) {
nstrm->strm_type = PR_NETIO_STRM_OTHR;
nstrm->strm_mode = mode;
- return othr_netio ? othr_netio->open(nstrm, fd, mode) :
- core_othr_netio->open(nstrm, fd, mode);
+ return othr_netio ? (othr_netio->open)(nstrm, fd, mode) :
+ (core_othr_netio->open)(nstrm, fd, mode);
}
destroy_pool(nstrm->strm_pool);
Index: proftpd.spec
===================================================================
RCS file: /cvs/extras/rpms/proftpd/devel/proftpd.spec,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- proftpd.spec 6 Aug 2007 12:27:14 -0000 1.30
+++ proftpd.spec 8 Aug 2007 17:38:54 -0000 1.31
@@ -1,7 +1,7 @@
Summary: Flexible, stable and highly-configurable FTP server
Name: proftpd
Version: 1.3.0a
-Release: 6%{?dist}
+Release: 7%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://www.proftpd.org/
@@ -17,6 +17,7 @@
Patch2: proftpd-1.3.0-cmdbufsize.patch
Patch3: proftpd-1.3.0-mod_tls.patch
Patch4: proftpd-1.3.0a-ctrls-bug2867.patch
+Patch5: proftpd-1.3.0a-open.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: pam >= 0.59
Requires(post): /sbin/chkconfig
@@ -72,6 +73,7 @@
%patch2 -p1 -b .cmdbufsize
%patch3 -p0 -b .mod_tls
%patch4 -p0 -b .ctrls-bug2867
+%patch5 -p1 -b .open
%build
@@ -194,6 +196,9 @@
%changelog
+* Mon Aug 6 2007 Matthias Saou <http://freshrpms.net/> 1.3.0a-7
+- Include patch to fix "open" calls with recent glibc.
+
* Mon Aug 6 2007 Matthias Saou <http://freshrpms.net/> 1.3.0a-6
- Update License field.
More information about the fedora-extras-commits
mailing list