refactor
This commit is contained in:
@@ -74,9 +74,7 @@ namespace {
|
|||||||
function_name, std::string{"failed to get group list count|error|"} +
|
function_name, std::string{"failed to get group list count|error|"} +
|
||||||
std::to_string(errno));
|
std::to_string(errno));
|
||||||
}
|
}
|
||||||
#endif // defined(__APPLE__)
|
|
||||||
|
|
||||||
#if !defined(__APPLE__)
|
|
||||||
groups.resize(static_cast<std::size_t>(group_count));
|
groups.resize(static_cast<std::size_t>(group_count));
|
||||||
res = getgrouplist(pass->pw_name, pass->pw_gid, groups.data(), &group_count);
|
res = getgrouplist(pass->pw_name, pass->pw_gid, groups.data(), &group_count);
|
||||||
if (res >= 0) {
|
if (res >= 0) {
|
||||||
|
Reference in New Issue
Block a user