MCPcopy Create free account
hub / github.com/ByConity/ByConity / stat

Class stat

programs/keeper/Keeper.cpp:354–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 /// Check that the process user id matches the owner of the data.
353 const auto effective_user_id = geteuid();
354 struct stat statbuf;
355 if (stat(path.c_str(), &statbuf) == 0 && effective_user_id != statbuf.st_uid)
356 {
357 const auto effective_user = getUserName(effective_user_id);

Callers 1

mainMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected