| 694 | } |
| 695 | |
| 696 | std::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 | |
| 709 | U32 KProcess::execve(KThread* thread, BString path, std::vector<BString>& args, const std::vector<BString>& envs) { |
| 710 | std::shared_ptr<FsNode> node; |