ngompa / rpms / proftpd

Forked from rpms/proftpd 6 years ago
Clone
Blob Blame History Raw
diff -Naupr proftpd-1.3.1rc3.orig/src/fsio.c proftpd-1.3.1rc3/src/fsio.c
--- proftpd-1.3.1rc3.orig/src/fsio.c	2007-05-22 22:54:09.000000000 +0200
+++ proftpd-1.3.1rc3/src/fsio.c	2007-08-19 18:30:27.000000000 +0200
@@ -2579,7 +2579,7 @@ pr_fh_t *pr_fsio_open_canon(const char *
 
   pr_trace_msg(trace_channel, 8, "using %s open() for path '%s'", fs->fs_name,
     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);
@@ -2620,7 +2620,7 @@ pr_fh_t *pr_fsio_open(const char *name, 
 
   pr_trace_msg(trace_channel, 8, "using %s open() for path '%s'", fs->fs_name,
     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.1rc3.orig/src/netio.c proftpd-1.3.1rc3/src/netio.c
--- proftpd-1.3.1rc3.orig/src/netio.c	2007-05-15 19:35:05.000000000 +0200
+++ proftpd-1.3.1rc3/src/netio.c	2007-08-19 18:24:51.000000000 +0200
@@ -390,22 +390,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);