Adjust config parser data type for _Port to int
authorJoey Schulze <joey@infodrom.org>
Thu, 15 May 2008 06:50:09 +0000 (06:50 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 15 May 2008 06:50:09 +0000 (06:50 +0000)
Thanks to Lehel Bernadt <lehel@pmc-services.hu>

debian/changelog
debian/patches/009-port-int.dpatch [new file with mode: 0644]
debian/patches/00list

index 0671155..52b609a 100644 (file)
@@ -12,6 +12,8 @@ mod-auth-mysql (4.3.9-8) unstable; urgency=low
   * Unify AuthMySQL_ and Auth_MySQL_ namespace [007-unify_namespace.dpatch]
   * Adjust the buffer size used by make_scrambled_password()
     [008-make_scrambled_password.dpatch] (closes: Bug#356064)
+  * Adjust config parser data type for _Port to int, thanks to Lehel
+    Bernadt <lehel@pmc-services.hu> [009-port-int.dpatch] (closes: Bug#356147)
 
  --
 
diff --git a/debian/patches/009-port-int.dpatch b/debian/patches/009-port-int.dpatch
new file mode 100644 (file)
index 0000000..3f75969
--- /dev/null
@@ -0,0 +1,38 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 009-port-int.dpatch by Lehel Bernadt <lehel@pmc-services.hu>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Adjust port to int
+
+@DPATCH@
+diff -urNad mod-auth-mysql~/mod_auth_mysql.c mod-auth-mysql/mod_auth_mysql.c
+--- mod-auth-mysql~/mod_auth_mysql.c   2008-05-15 08:44:54.000000000 +0200
++++ mod-auth-mysql/mod_auth_mysql.c    2008-05-15 08:45:35.000000000 +0200
+@@ -753,11 +753,11 @@
+                 (void*)APR_OFFSETOF(mysql_auth_config_rec, db_socket),
+                 OR_AUTHCFG,   "database host socket" ),
+-   AP_INIT_TAKE1( "Auth_MySQL_Port",  ap_set_string_slot,
++   AP_INIT_TAKE1( "Auth_MySQL_Port",  ap_set_int_slot,
+                 (void*)APR_OFFSETOF(mysql_auth_config_rec, db_port),
+                 OR_AUTHCFG,   "database host port" ),
+-   AP_INIT_TAKE1( "AuthMySQL_Port",   ap_set_string_slot,
++   AP_INIT_TAKE1( "AuthMySQL_Port",   ap_set_int_slot,
+                 (void*)APR_OFFSETOF(mysql_auth_config_rec, db_port),
+                 OR_AUTHCFG,   "database host port" ),
+@@ -1021,11 +1021,11 @@
+         (void *) XtOffsetOf(mysql_auth_config_rec, db_socket),
+         OR_AUTHCFG,   TAKE1,  "database host socket" },
+-      { "Auth_MySQL_Port",                    ap_set_string_slot,
++      { "Auth_MySQL_Port",                    ap_set_int_slot,
+         (void *) XtOffsetOf(mysql_auth_config_rec, db_port),
+         OR_AUTHCFG,   TAKE1,  "database host socket" },
+-      { "AuthMySQL_Port",                     ap_set_string_slot,
++      { "AuthMySQL_Port",                     ap_set_int_slot,
+         (void *) XtOffsetOf(mysql_auth_config_rec, db_port),
+         OR_AUTHCFG,   TAKE1,  "database host socket" },
index fdd431d..fec947d 100644 (file)
@@ -5,3 +5,4 @@
 006-options
 007-unify_namespace
 008-make_scrambled_password
+009-port-int