| 227 | } |
| 228 | |
| 229 | std::string OHDUtil::create_command_with_args( |
| 230 | const std::string& command, const std::vector<std::string>& args) { |
| 231 | std::stringstream ss; |
| 232 | ss << command; |
| 233 | for (const auto& arg : args) { |
| 234 | ss << " " << arg; |
| 235 | } |
| 236 | return ss.str(); |
| 237 | } |
| 238 | |
| 239 | bool OHDUtil::check_root(const bool print_debug) { |
| 240 | const auto uid = getuid(); |
nothing calls this directly
no outgoing calls
no test coverage detected