mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 06:03:02 +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:
parent
1bf39b9840
commit
6771beb989
@ -74,7 +74,7 @@ SLONG get_user_group_id(const TEXT* user_group_name)
|
|||||||
Firebird::MutexLockGuard guard(grMutex);
|
Firebird::MutexLockGuard guard(grMutex);
|
||||||
|
|
||||||
const struct group* user_group = getgrnam(user_group_name);
|
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;
|
static Firebird::GlobalPtr<Firebird::Mutex> pwMutex;
|
||||||
|
Loading…
Reference in New Issue
Block a user