[vhffs-dev] [1653] added VHFFS patch againt MySQL 5.1.49 (Squeeze)

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1653
Author:   gradator
Date:     2011-04-16 22:14:25 +0200 (Sat, 16 Apr 2011)
Log Message:
-----------
added VHFFS patch againt MySQL 5.1.49 (Squeeze)

Added Paths:
-----------
    trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch

Added: trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch
===================================================================
--- trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch	                        (rev 0)
+++ trunk/vhffs-packages/patches/mysql/200_mysql-5.1-5.1.49-username-length.dpatch	2011-04-16 20:14:25 UTC (rev 1653)
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 200_mysql-5.1-5.1.49-username-length.dpatch
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: TuxFamily patch to raise the username name length from 16 to 64 characters
+
+@DPATCH@
+diff -Nru mysql-5.1-5.1.49.a/include/mysql_com.h mysql-5.1-5.1.49.b/include/mysql_com.h
+--- mysql-5.1-5.1.49.a/include/mysql_com.h	2010-07-09 12:34:59.000000000 +0000
++++ mysql-5.1-5.1.49.b/include/mysql_com.h	2011-04-16 19:29:11.000000000 +0000
+@@ -20,10 +20,10 @@
+ #ifndef _mysql_com_h
+ #define _mysql_com_h
+ 
+-#define HOSTNAME_LENGTH 60
++#define HOSTNAME_LENGTH 64
+ #define SYSTEM_CHARSET_MBMAXLEN 3
+ #define NAME_CHAR_LEN	64              /* Field/table name length */
+-#define USERNAME_CHAR_LENGTH 16
++#define USERNAME_CHAR_LENGTH 128
+ #define NAME_LEN                (NAME_CHAR_LEN*SYSTEM_CHARSET_MBMAXLEN)
+ #define USERNAME_LENGTH         (USERNAME_CHAR_LENGTH*SYSTEM_CHARSET_MBMAXLEN)
+ 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/