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

Fixed gbak logic when using -TRUSTED switch - thanks to Claudio

This commit is contained in:
alexpeshkoff 2009-07-10 07:52:56 +00:00
parent f3153c40c7
commit b053182f60

View File

@ -266,10 +266,10 @@ static int api_gbak(Firebird::UtilSvc* uSvc, in_sw_tab_t* const in_sw_tab)
} }
#ifdef TRUSTED_AUTH #ifdef TRUSTED_AUTH
if (flag_trusted) if (flag_trusted)
#endif
{ {
spb.insertTag(isc_spb_trusted_auth); spb.insertTag(isc_spb_trusted_auth);
} }
#endif
// Fill command line options // Fill command line options
Firebird::string options; Firebird::string options;
@ -707,9 +707,6 @@ int gbak(Firebird::UtilSvc* uSvc)
// trusted user name parameter missing // trusted user name parameter missing
} }
tdgbl->gbl_sw_tr_user = argv[itr]; tdgbl->gbl_sw_tr_user = argv[itr];
#ifdef TRUSTED_AUTH
burp_in_sw_table[IN_SW_BURP_TRUSTED_USER].in_sw_state = true;
#endif
} }
else if (in_sw_tab->in_sw == IN_SW_BURP_ROLE) else if (in_sw_tab->in_sw == IN_SW_BURP_ROLE)
{ {