|
From: <ro...@us...> - 2014-05-07 08:58:38
|
Revision: 59552
http://sourceforge.net/p/firebird/code/59552
Author: robocop
Date: 2014-05-07 08:58:36 +0000 (Wed, 07 May 2014)
Log Message:
-----------
Fix the problem with gbak restoring a db and lack of rights on sys tables that Philippe detected.
Modified Paths:
--------------
firebird/trunk/src/jrd/vio.cpp
Modified: firebird/trunk/src/jrd/vio.cpp
===================================================================
--- firebird/trunk/src/jrd/vio.cpp 2014-05-07 03:42:55 UTC (rev 59551)
+++ firebird/trunk/src/jrd/vio.cpp 2014-05-07 08:58:36 UTC (rev 59552)
@@ -192,8 +192,10 @@
// inconsistencies while restoring. Used in VIO_erase.
inline void check_gbak_cheating_delete(thread_db* tdbb, const jrd_rel* relation)
{
+ // For now, it will be left the same as the above, because I'm don't know
+ // how to check I'm inside DFW and DFW does deletions.
const ULONG uflags = tdbb->getAttachment()->att_flags;
- if ((uflags & ATT_gbak_attachment) && relation->rel_id != rel_segments)
+ if ((uflags & ATT_gbak_attachment) && !(uflags & ATT_creator)) //relation->rel_id != rel_segments)
protect_system_table_delupd(tdbb, relation, "DELETE", true);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|