Searched refs:group_name (Results 1 – 4 of 4) sorted by relevance
173 const std::string& group_name) { in EnsureDirectoryExists() argument185 EnsureDirectoryExists(parent_dir, mode, group_name); in EnsureDirectoryExists()197 if (group_name != "") { in EnsureDirectoryExists()198 CF_EXPECT(ChangeGroup(directory_path, group_name)); in EnsureDirectoryExists()205 const std::string& group_name) { in ChangeGroup() argument206 auto groupId = GroupIdFromName(group_name); in ChangeGroup()209 return CF_ERR("Failed to get group id: ") << group_name; in ChangeGroup()214 << path << ", " << group_name << ", " << strerror(errno)); in ChangeGroup()
58 gid_t GroupIdFromName(const std::string& group_name) { in GroupIdFromName() argument64 result = getgrnam_r(group_name.c_str(), &grp, buffer.data(), buffer.size(), in GroupIdFromName()79 LOG(ERROR) << "Unable to get group id for group " << group_name << ": " in GroupIdFromName()
45 const std::string& group_name = "");47 const std::string& group_name);
26 gid_t GroupIdFromName(const std::string& group_name);