Liten R for references_priv

This commit is contained in:
Aslak Raanes 2018-03-05 15:48:07 +01:00
parent 63b59e05df
commit beb099fc79
1 changed files with 7 additions and 7 deletions

View File

@ -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';