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

Function elevating_stat

src/tscore/ink_cap.cc:415–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415int
416elevating_stat(const char *path, struct stat *buff)
417{
418 int ret = stat(path, buff);
419 if (ret != 0 && (EPERM == errno || EACCES == errno)) {
420 ElevateAccess access(ElevateAccess::FILE_PRIVILEGE);
421 return stat(path, buff);
422 }
423 return ret;
424}
425
426#if !TS_USE_POSIX_CAP
427

Callers 1

statFileMethod · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected