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

Function get_user_id

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

Return user id if user found, otherwise return -1.

Source from the content-addressed store, hash-verified

112
113// Return user id if user found, otherwise return -1.
114SLONG get_user_id(const TEXT* user_name)
115{
116 MutexLockGuard guard(pwMutex, "get_user_id");
117
118 const struct passwd* user = getpwnam(user_name);
119 return user ? user->pw_uid : -1;
120}
121
122// Fills the buffer with home directory if user found
123bool get_user_home(int user_id, PathName& homeDir)

Callers 2

changeFileRightsFunction · 0.70
expand_filename2Function · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected