This commit is contained in:
		| @@ -23,7 +23,7 @@ | ||||
|  | ||||
| #include "utils/unix.hpp" | ||||
| #include "utils/collection.hpp" | ||||
| #include "utils/error_utils.hpp" | ||||
| #include "utils/utils.hpp" | ||||
|  | ||||
| namespace { | ||||
| [[nodiscard]] auto get_group_list(auto *pass) -> std::vector<gid_t> { | ||||
| @@ -39,7 +39,7 @@ namespace { | ||||
|   while (true) { | ||||
|     auto group_count{static_cast<int>(groups.size())}; | ||||
|     if (group_count > max_group_count) { | ||||
|       repertory::utils::error::raise_error( | ||||
|       repertory::utils::error::handle_error( | ||||
|           function_name, "getgrouplist failed: too many groups"); | ||||
|       break; | ||||
|     } | ||||
| @@ -50,7 +50,7 @@ namespace { | ||||
|     }; | ||||
|     if (res < 0) { | ||||
|       if (orig_count == 0U) { | ||||
|         repertory::utils::error::raise_error( | ||||
|         repertory::utils::error::handle_error( | ||||
|             function_name, | ||||
|             fmt::format("failed to get group list|error|{}", errno)); | ||||
|       } | ||||
| @@ -92,7 +92,7 @@ namespace repertory::utils { | ||||
| auto convert_to_uint64(const pthread_t &thread) -> std::uint64_t { | ||||
|   return static_cast<std::uint64_t>(thread); | ||||
| } | ||||
| #endif // defined(__APPLE__) | ||||
| #endif // !defined(__APPLE__) | ||||
|  | ||||
| auto get_last_error_code() -> int { return errno; } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user