Commit 8ee298cc authored by unknown's avatar unknown
Browse files

Updated error message to be more informative. Previous error message

"Access denied to database mysql" was actually not just misleading, but
also wrong.

Bug#7905.

parent 90697f24
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3399,9 +3399,12 @@ purposes internal to the MySQL server", MYF(0));
	     my_strcasecmp(&my_charset_latin1,
                           user->host.str, thd->host_or_ip)))
	{
	  if (check_access(thd, UPDATE_ACL, "mysql",0,1,0))
	  if (check_access(thd, UPDATE_ACL, "mysql", 0, 1, 1))
	  {
	    send_error(thd, ER_PASSWORD_NOT_ALLOWED);
	    goto error;
	  break;			// We are allowed to do changes
	  }
	  break;		  // We are allowed to do global changes
	}
      }
    }