| 247 | } |
| 248 | |
| 249 | void OHDUtil::terminate_if_not_root() { |
| 250 | if (!check_root(false)) { |
| 251 | openhd::log::get_default()->error( |
| 252 | "not root,terminating. Run OpenHD with root privileges."); |
| 253 | exit(EXIT_FAILURE); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | bool OHDUtil::get_ohd_env_variable_bool(const std::string& name) { |
| 258 | if (!OHDUtil::contains_after_uppercase(name, "OHD_")) { |
nothing calls this directly
no outgoing calls
no test coverage detected