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

Allow local protocol to work with servers running both under restricted accounts (e.g. Vista regular user) and unrestricted accounts (e.g. LocalService)

This commit is contained in:
skidder 2007-10-28 14:23:20 +00:00
parent 36780e9e63
commit 4f1b37669c
2 changed files with 5 additions and 2 deletions

View File

@ -326,7 +326,10 @@ void prefix_kernel_object_name(char* name, size_t bufsize)
bInitDone = true;
}
if (bGlobalPrefix)
// Backwards compatibility feature with Firebird 2.0.3 and earlier.
// If the name already contains some prefix (specified by the user, as was
// recommeded in firebird.conf) additional prefix is not added
if (bGlobalPrefix && !strchr(name, '\\'))
{
const char *prefix = "Global\\";
const size_t len_prefix = strlen(prefix);

View File

@ -98,7 +98,7 @@ namespace fb_utils
}
#ifdef WIN_NT
void prefix_kernel_object_name(char*, size_t);
void prefix_kernel_object_name(char* name, size_t bufsize);
#endif
Firebird::PathName get_process_name();