int ConfigManager::statFile() A wrapper for stat()
| 368 | // A wrapper for stat() |
| 369 | // |
| 370 | int |
| 371 | FileManager::ConfigManager::statFile(struct stat *buf) |
| 372 | { |
| 373 | int statResult; |
| 374 | std::string sysconfdir(RecConfigReadConfigDir()); |
| 375 | std::string filePath = Layout::get()->relative_to(sysconfdir, fileName); |
| 376 | |
| 377 | statResult = root_access_needed ? elevating_stat(filePath.c_str(), buf) : stat(filePath.c_str(), buf); |
| 378 | |
| 379 | return statResult; |
| 380 | } |
| 381 | |
| 382 | // bool ConfigManager::checkForUserUpdate(RollBackCheckType how) |
| 383 | // |
no test coverage detected