[Dbconfig-common-changes] dbconfig-common/internal mysql,1.9,1.10

seanius at haydn.debian.org seanius at haydn.debian.org
Fri Jan 6 08:48:17 UTC 2006


Update of /cvsroot/dbconfig-common/dbconfig-common/internal
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv15399/internal

Modified Files:
	mysql 
Log Message:
update to dbc_mysql_check_user, as mysql changed the output of SHOW GRANTS...


Index: mysql
===================================================================
RCS file: /cvsroot/dbconfig-common/dbconfig-common/internal/mysql,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mysql	2 Nov 2005 09:25:18 -0000	1.9
+++ mysql	6 Jan 2006 08:48:14 -0000	1.10
@@ -126,7 +126,7 @@
 		l_dballow="$dbc_dballow"
 	fi
 
-	if ! _dbc_nodb="yes" dbc_mysql_exec_command "SHOW GRANTS FOR '$dbc_dbuser'@'$l_dballow'" | grep -qi "GRANT ALL PRIVILEGES ON \`$dbc_dbname\`"; then
+	if ! _dbc_nodb="yes" dbc_mysql_exec_command "SHOW GRANTS FOR '$dbc_dbuser'@'$l_dballow'" | grep -qi "GRANT .* ON \`$dbc_dbname\`"; then
 		return 1
 	else
 		return 0




More information about the Dbconfig-common-changes mailing list