| 75 | } |
| 76 | |
| 77 | static inline bool FreeBSDGuessExecPath(const TString& guessPath, TString& execPath) { |
| 78 | if (NFs::Exists(guessPath)) { |
| 79 | // now it should work for real |
| 80 | execPath = FreeBSDGetExecPath(); |
| 81 | if (RealPath(execPath) == RealPath(guessPath)) { |
| 82 | return true; |
| 83 | } |
| 84 | } |
| 85 | return false; |
| 86 | } |
| 87 | |
| 88 | static inline bool FreeBSDGuessExecBasePath(const TString& guessBasePath, TString& execPath) { |
| 89 | return FreeBSDGuessExecPath(TString(guessBasePath) + "/" + getprogname(), execPath); |
no test coverage detected