Searched refs:groupname (Results 1 - 2 of 2) sorted by relevance

/systemd/src/basic/
H A Duser-util.c175 int get_group_creds(const char **groupname, gid_t *gid) { argument
179 assert(groupname);
184 if (streq(*groupname, "root") || streq(*groupname, "0")) {
185 *groupname = "root";
193 if (parse_gid(*groupname, &id) >= 0) {
198 *groupname = g->gr_name;
201 g = getgrnam(*groupname);
H A Duser-util.h41 int get_group_creds(const char **groupname, gid_t *gid);

Completed in 10 milliseconds