8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 06:03:02 +01:00

Do not let SYSDBA modify structure of system tables

This commit is contained in:
alexpeshkoff 2015-04-20 15:07:14 +00:00
parent 512f0d944e
commit 1a9830ebd6

View File

@ -778,7 +778,7 @@ void SCL_check_relation(thread_db* tdbb, const dsc* dsc_name, SecurityClass::fla
FOR(REQUEST_HANDLE request) REL IN RDB$RELATIONS
WITH REL.RDB$RELATION_NAME EQ name.c_str()
{
if (REL.RDB$SYSTEM_FLAG == 1 && !attachment->locksmith())
if (REL.RDB$SYSTEM_FLAG == 1 && !attachment->isRWGbak())
{
// Someone is going to modify system table layout
// Usually it's not good idea