MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / findInPath

Method findInPath

source/kernel/kprocess.cpp:696–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694}
695
696std::shared_ptr<FsNode> KProcess::findInPath(BString path) {
697 std::shared_ptr<FsNode> node = Fs::getNodeFromLocalPath(this->currentDirectory, path, true);
698
699 if (!node && !path.startsWith('/')) {
700 for( const auto& n : this->path ) {
701 node = Fs::getNodeFromLocalPath(n, path, true);
702 if (node)
703 break;
704 }
705 }
706 return node;
707}
708
709U32 KProcess::execve(KThread* thread, BString path, std::vector<BString>& args, const std::vector<BString>& envs) {
710 std::shared_ptr<FsNode> node;

Callers 1

execveMethod · 0.95

Calls 1

startsWithMethod · 0.80

Tested by

no test coverage detected