diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-09 00:31:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-09 00:31:15 -0400 |
| commit | 585cc7b40d38b13553468d2dc4ba8e2d32da9938 (patch) | |
| tree | cc4b11826dbbc82c9cd75221c38a10ef7b5f4309 | |
| parent | 1b89eea1cf6126a2f80f51dcc83782ce70265f7e (diff) | |
Bugfix for installing libraries through `.` or `..`
| -rw-r--r-- | src/tomo.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -253,8 +253,10 @@ int main(int argc, char *argv[]) print("Uninstalled ", *u); } + Path_t cwd = Path$current_dir(); for (int64_t i = 0; i < libraries.length; i++) { Path_t *lib = (Path_t*)(libraries.data + i*libraries.stride); + *lib = Path$resolved(*lib, cwd); // Fork a child process to build the library to prevent cross-contamination // of side effects when building one library from affecting another library. // This *could* be done in parallel, but there may be some dependency issues. |
