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

Function fix_runroot

src/traffic_layout/engine.cc:638–650  ·  view source on GitHub ↗

the fixing permission of runroot used by verify command

Source from the content-addressed store, hash-verified

636
637// the fixing permission of runroot used by verify command
638static void
639fix_runroot(PermissionMapType &permission_map, const struct passwd *pwd)
640{
641 fix_flag = true;
642 for (const auto &it : permission_map) {
643 std::string name = it.first;
644 std::string value = it.second.path;
645 permission_entry = permission_map[name];
646 ftw(value.c_str(), permission_handler, OPEN_MAX_FILE);
647 }
648 fix_flag = false;
649 set_permission(permission_map, pwd);
650}
651
652void
653LayoutEngine::verify_runroot()

Callers 1

verify_runrootMethod · 0.85

Calls 2

set_permissionFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected