From f49f37d700028b8dda5c92fe46db6d0f4e346d43 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Thu, 19 Feb 2009 15:41:08 +0000 Subject: [PATCH] always uppercase service user name - should make trace happy --- src/jrd/svc.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jrd/svc.cpp b/src/jrd/svc.cpp index 1c4321c84b..ea909c7755 100644 --- a/src/jrd/svc.cpp +++ b/src/jrd/svc.cpp @@ -165,6 +165,7 @@ namespace { case isc_spb_user_name: spb.getString(spb_user_name); + spb_user_name.upper(); break; case isc_spb_password: @@ -791,9 +792,7 @@ Service::Service(const TEXT* service_name, USHORT spb_length, const UCHAR* spb_d } // Check that the validated user has the authority to access this service - string uName(options.spb_user_name); - uName.upper(); - if ((uName != SYSDBA_USER_NAME) && !options.spb_trusted_role) { + if ((options.spb_user_name != SYSDBA_USER_NAME) && !options.spb_trusted_role) { user_flag = SVC_user_any; } else {