updated build system
Some checks are pending
BlockStorage/repertory/pipeline/head Build queued...
BlockStorage/repertory_mac/pipeline/head This commit looks good

This commit is contained in:
2025-08-03 14:54:46 -05:00
parent 25668a8d83
commit dcddca16f3

View File

@@ -22,6 +22,7 @@
#if !defined(_WIN32) #if !defined(_WIN32)
#include "utils/unix.hpp" #include "utils/unix.hpp"
#include "utils/collection.hpp" #include "utils/collection.hpp"
#include "utils/error.hpp" #include "utils/error.hpp"
@@ -39,8 +40,8 @@ namespace {
while (true) { while (true) {
auto group_count{static_cast<int>(groups.size())}; auto group_count{static_cast<int>(groups.size())};
if (group_count > max_group_count) { if (group_count > max_group_count) {
repertory::utils::error::handle_error( repertory::utils::error::handle_error(function_name,
function_name, "getgrouplist failed: too many groups"); "group list has too many groups");
break; break;
} }
@@ -51,8 +52,8 @@ namespace {
if (res < 0) { if (res < 0) {
if (orig_count == 0U) { if (orig_count == 0U) {
repertory::utils::error::handle_error( repertory::utils::error::handle_error(
function_name, function_name, std::string{"failed to get group list|error|"} +
fmt::format("failed to get group list|error|{}", errno)); std::to_string(errno));
} }
break; break;
@@ -70,7 +71,8 @@ namespace {
auto res = getgrouplist(pass->pw_name, pass->pw_gid, nullptr, &group_count); auto res = getgrouplist(pass->pw_name, pass->pw_gid, nullptr, &group_count);
if (res >= 0) { if (res >= 0) {
repertory::utils::error::raise_error( repertory::utils::error::raise_error(
function_name, fmt::format("failed to get group list|error|{}", errno)); function_name, std::string{"failed to get group list count|error|"} +
std::to_string(errno));
} }
#endif // defined(__APPLE__) #endif // defined(__APPLE__)
@@ -79,7 +81,8 @@ namespace {
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) {
repertory::utils::error::raise_error( repertory::utils::error::raise_error(
function_name, fmt::format("failed to get group list|error|{}", errno)); function_name,
std::string{"failed to get group list|error|"} + std::to_string(errno));
} }
#endif // !defined(__APPLE__) #endif // !defined(__APPLE__)