From beb099fc79ae435a2aa03ec0cfeda2f9de01f96d Mon Sep 17 00:00:00 2001 From: Aslak Raanes Date: Mon, 5 Mar 2018 15:48:07 +0100 Subject: [PATCH] Liten R for references_priv --- mysql-dbadm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mysql-dbadm.c b/mysql-dbadm.c index a7cb667..9a26bc4 100644 --- a/mysql-dbadm.c +++ b/mysql-dbadm.c @@ -1,4 +1,4 @@ -/* +references_privreferences_priv/* * @(#) $Header: /home/stud/admin/cvs/mysql-admutils/mysql-dbadm.c,v 1.20 2007/06/04 08:40:54 geirha Exp $ * * mysql-dbadm.c @@ -311,7 +311,7 @@ writeperm(FILE *f, MYSQL *pmysql, const char *db) "delete_priv,create_priv,drop_priv," "alter_priv,index_priv," "create_tmp_table_priv,lock_tables_priv," - "References_priv " + "references_priv " "FROM db WHERE db = '"); end += mysql_real_escape_string(pmysql, end, db, strlen(db)); *end++ = '\''; @@ -370,7 +370,7 @@ editperm(MYSQL *pmysql, const char *db) char *cp; /* used to interate through a line */ char *user, *select_priv, *insert_priv, *update_priv, *delete_priv, *create_priv, *drop_priv, *alter_priv, *index_priv, *create_tmp_table_priv, - *lock_tables_priv, *References_priv; + *lock_tables_priv, *references_priv; char query[4096], *end; /* used to build a query */ char *queries[MAX_GRANTS]; /* insert queries */ int lines; /* number of grant lines processed */ @@ -486,8 +486,8 @@ editperm(MYSQL *pmysql, const char *db) CHECK_PRIV(create_tmp_table_priv); STRTOK_WHITESPACE(lock_tables_priv, NULL); CHECK_PRIV(lock_tables_priv); - STRTOK_WHITESPACE(References_priv, NULL); - CHECK_PRIV(References_priv); + STRTOK_WHITESPACE(references_priv, NULL); + CHECK_PRIV(references_priv); #undef STRTOK_WHITESPACE #undef CHECK_PRIV @@ -497,7 +497,7 @@ editperm(MYSQL *pmysql, const char *db) "update_priv,delete_priv,create_priv," "drop_priv,alter_priv,index_priv," "create_tmp_table_priv,lock_tables_priv," - "References_priv" + "references_priv" ") VALUES ("); end = strmov(end, "'%'"); @@ -521,7 +521,7 @@ editperm(MYSQL *pmysql, const char *db) APPEND(index_priv); APPEND(create_tmp_table_priv); APPEND(lock_tables_priv); - APPEND(References_priv); + APPEND(references_priv); *end++ = ')'; *end = '\0';