[mod_bw: 1/2] Use proper httpd-2.4 patch

Jan Kaluža jkaluza at fedoraproject.org
Mon Jul 23 08:44:31 UTC 2012


commit d5363b3626416071bd9208c80f6f4fb0979436e8
Author: Jan Kaluza <hanzz.k at gmail.com>
Date:   Mon Jul 23 10:39:15 2012 +0200

    Use proper httpd-2.4 patch

 mod_bw-httpd24.patch |   49 +++++++++++++++++++------------------------------
 mod_bw.spec          |    5 ++++-
 2 files changed, 23 insertions(+), 31 deletions(-)
---
diff --git a/mod_bw-httpd24.patch b/mod_bw-httpd24.patch
index d49d310..0d9e8c3 100644
--- a/mod_bw-httpd24.patch
+++ b/mod_bw-httpd24.patch
@@ -1,42 +1,31 @@
-diff -up mod_bw/mod_bw.c.httpd24 mod_bw/mod_bw.c
---- mod_bw/mod_bw.c.httpd24	2012-04-10 11:57:06.092958430 +0200
-+++ mod_bw/mod_bw.c	2012-04-10 11:59:51.832838191 +0200
-@@ -519,10 +519,8 @@ static long get_bw_rate(request_rec * r,
+diff --git a/mod_bw.c b/mod_bw.c
+index a49caf8..8b75973 100644
+--- a/mod_bw.c
++++ b/mod_bw.c
+@@ -519,7 +519,7 @@ static long get_bw_rate(request_rec * r, apr_array_header_t * a)
              return e[i].rate;
  
          case T_IP:
 -            if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
--                return e[i].rate;
--            }
--            break;
-+            return e[i].rate;
-+
-         case T_HOST:
-             if (!gothost) {
-                 int remotehost_is_ip;
-@@ -608,10 +606,8 @@ static int get_maxconn(request_rec * r,
++            if (apr_ipsubnet_test(e[i].x.ip, r->useragent_addr)) {
+                 return e[i].rate;
+             }
+             break;
+@@ -608,7 +608,7 @@ static int get_maxconn(request_rec * r, apr_array_header_t * a)
              return e[i].max;
  
          case T_IP:
 -            if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
--                return e[i].max;
--            }
--            break;
-+            return e[i].max;
-+
-         case T_HOST:
-             if (!gothost) {
-                 int remotehost_is_ip;
-@@ -659,10 +655,8 @@ static int get_sid(request_rec * r, apr_
++            if (apr_ipsubnet_test(e[i].x.ip, r->useragent_addr)) {
+                 return e[i].max;
+             }
+             break;
+@@ -659,7 +659,7 @@ static int get_sid(request_rec * r, apr_array_header_t * a)
              return e[i].sid;
  
          case T_IP:
 -            if (apr_ipsubnet_test(e[i].x.ip, r->connection->remote_addr)) {
--                return e[i].sid;
--            }
--            break;
-+            return e[i].sid;
-+
-         case T_HOST:
-             if (!gothost) {
-                 int remotehost_is_ip;
++            if (apr_ipsubnet_test(e[i].x.ip, r->useragent_addr)) {
+                 return e[i].sid;
+             }
+             break;
diff --git a/mod_bw.spec b/mod_bw.spec
index 783b351..a2fd7d6 100644
--- a/mod_bw.spec
+++ b/mod_bw.spec
@@ -3,7 +3,7 @@
 
 Name:           mod_bw
 Version:        0.8
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Bandwidth Limiter For Apache
 
 Group:          System Environment/Daemons
@@ -54,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Jul 23 2012 Jan Kaluza <jkaluza at redhat.com> - 0.8-9
+- Use proper httpd-2.4 patch
+
 * Tue Apr 10 2012  - Jakub Hrozek <jhrozek at redhat.com> 0.8-8
 - Fix compilation with httpd-2.4 (Jan Kaluza <jkaluza at redhat.com>)
 - Provide backwards-compatible _httpd_apxs macro


More information about the scm-commits mailing list