aboutsummaryrefslogtreecommitdiff
path: root/src/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-09 00:31:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-09 00:31:15 -0400
commit585cc7b40d38b13553468d2dc4ba8e2d32da9938 (patch)
treecc4b11826dbbc82c9cd75221c38a10ef7b5f4309 /src/tomo.c
parent1b89eea1cf6126a2f80f51dcc83782ce70265f7e (diff)
Bugfix for installing libraries through `.` or `..`
Diffstat (limited to 'src/tomo.c')
-rw-r--r--src/tomo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tomo.c b/src/tomo.c
index 32bdfd82..ebd33820 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -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.