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

Restored old (SYSDBA) value of CURRENT_USER during BOOT_BUILD

This commit is contained in:
alexpeshkoff 2007-06-09 09:25:40 +00:00
parent 9e4e6c5073
commit 4a4a01ee98
2 changed files with 2 additions and 6 deletions

View File

@ -7193,7 +7193,7 @@ static void getUserInfo(UserId& user, const DatabaseOptions& options)
int node_id = 0;
int id = -1, group = -1; // CVC: This var contained trash
#ifdef NO_SECURITY
#ifdef BOOT_BUILD
bool wheel = true;
#else
bool wheel = false;
@ -7258,7 +7258,7 @@ static void getUserInfo(UserId& user, const DatabaseOptions& options)
wheel = true;
}
}
#endif // NO_SECURITY
#endif // BOOT_BUILD
// In case we became WHEEL on an OS that didn't require name SYSDBA,
// (Like Unix) force the effective Database User name to be SYSDBA

View File

@ -72,10 +72,6 @@ const int UIC_BASE = 8;
const int UIC_BASE = 10;
#endif
#ifdef BOOT_BUILD
#define NO_SECURITY
#endif
const SLONG BLOB_BUFFER_SIZE = 4096; /* used to read in acl blob */
using namespace Jrd;