openbsd-ports/databases/mysql/patches/patch-sql_sql_db_cc
brad f224072f1b * Fixed bug in privilege checking where, under some conditions, one
was able to grant privileges on the database, he has no privileges
  on. (Bug #3933)
2004-10-20 07:36:04 +00:00

13 lines
494 B
Plaintext

$OpenBSD: patch-sql_sql_db_cc,v 1.1 2004/10/20 07:36:04 brad Exp $
--- sql/sql_db.cc.orig Thu May 13 20:53:31 2004
+++ sql/sql_db.cc Wed Oct 20 00:50:19 2004
@@ -408,7 +408,7 @@ bool mysql_change_db(THD *thd,const char
db_access=DB_ACLS;
else
db_access= (acl_get(thd->host,thd->ip,(char*) &thd->remote.sin_addr,
- thd->priv_user,dbname) |
+ thd->priv_user,dbname,0) |
thd->master_access);
if (!(db_access & DB_ACLS) && (!grant_option || check_grant_db(thd,dbname)))
{