From 6771beb989678e7188434dcecd0697511652a421 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Tue, 18 May 2010 10:38:38 +0000 Subject: [PATCH] Backported fix for CORE-3006: /tmp/firebird and files in it may get 'root' (i.e. GID == 0) group --- src/jrd/os/posix/os_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/os/posix/os_utils.cpp b/src/jrd/os/posix/os_utils.cpp index 31237ac545..4d2cf87a80 100644 --- a/src/jrd/os/posix/os_utils.cpp +++ b/src/jrd/os/posix/os_utils.cpp @@ -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 pwMutex;