MCPcopy Create free account
hub / github.com/apache/trafficserver / statFile

Method statFile

src/mgmt/config/FileManager.cc:370–380  ·  view source on GitHub ↗

int ConfigManager::statFile() A wrapper for stat()

Source from the content-addressed store, hash-verified

368// A wrapper for stat()
369//
370int
371FileManager::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//

Callers 1

checkForUserUpdateMethod · 0.95

Calls 6

RecConfigReadConfigDirFunction · 0.85
elevating_statFunction · 0.85
relative_toMethod · 0.80
statClass · 0.70
getFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected