8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:43:03 +01:00
This commit is contained in:
asfernandes 2008-07-06 18:08:23 +00:00
parent 36e372279d
commit 4aa6ecbaf1
3 changed files with 27 additions and 27 deletions

View File

@ -411,7 +411,8 @@ void SecurityDatabase::verifyUser(string& name,
static AmCache useNative = AM_UNKNOWN;
if (useNative == AM_UNKNOWN)
{
// We use PathName for case-insensitive string comparison
// We use PathName for string comparison using platform filename comparision
// rules (case-sensitive or case-insensitive).
const PathName authMethod(Config::getAuthMethod());
useNative = (authMethod == AmNative || authMethod == AmMixed) ?
AM_ENABLED : AM_DISABLED;

View File

@ -642,8 +642,8 @@ Service::Service(const TEXT* service_name, USHORT spb_length, const UCHAR* spb_d
}
if (options.spb_user_name.length() > USERNAME_LENGTH) {
status_exception::raise(Arg::Gds(isc_long_login)
<< Arg::Num(options.spb_user_name.length()) << Arg::Num(USERNAME_LENGTH));
status_exception::raise(Arg::Gds(isc_long_login) <<
Arg::Num(options.spb_user_name.length()) << Arg::Num(USERNAME_LENGTH));
}
// Check that the validated user has the authority to access this service
@ -2004,8 +2004,7 @@ const TEXT* Service::find_switch(int in_spb_sw, const in_sw_tab_t* table)
}
bool Service::process_switches(ClumpletReader& spb,
string& switches)
bool Service::process_switches(ClumpletReader& spb, string& switches)
{
if (spb.getBufferLength() == 0)
return false;