MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / get_user_group_id

Function get_user_group_id

src/common/os/posix/os_utils.cpp:103–109  ·  view source on GitHub ↗

Return user group id if user group name found, otherwise return 0.

Source from the content-addressed store, hash-verified

101
102// Return user group id if user group name found, otherwise return 0.
103SLONG get_user_group_id(const TEXT* user_group_name)
104{
105 MutexLockGuard guard(grMutex, "get_user_group_id");
106
107 const struct group* user_group = getgrnam(user_group_name);
108 return user_group ? user_group->gr_gid : -1;
109}
110
111static GlobalPtr<Mutex> pwMutex;
112

Callers 1

changeFileRightsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected