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

Backported fix for CORE-3006: /tmp/firebird and files in it may get 'root' (i.e. GID == 0) group

This commit is contained in:
alexpeshkoff 2010-05-18 10:38:38 +00:00
parent 1bf39b9840
commit 6771beb989

View File

@ -74,7 +74,7 @@ SLONG get_user_group_id(const TEXT* user_group_name)
Firebird::MutexLockGuard guard(grMutex);
const struct group* user_group = getgrnam(user_group_name);
return user_group ? user_group->gr_gid : 0;
return user_group ? user_group->gr_gid : -1;
}
static Firebird::GlobalPtr<Firebird::Mutex> pwMutex;