From a1f81258c164e772307043cf1be65c1343319d58 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 5 May 2025 15:11:14 -0400 Subject: Fix some permission stuff to make it more seamless to install to directories the user doesn't own (e.g. /usr/local, owned by root) --- src/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile.c') diff --git a/src/compile.c b/src/compile.c index 8494766a..76f519c8 100644 --- a/src/compile.c +++ b/src/compile.c @@ -1977,7 +1977,7 @@ static CORD _compile_statement(env_t *env, ast_t *ast) return with_source_info(env, ast, CORD_all("$initialize", suffix, "();\n")); } else if (use->what == USE_MODULE) { glob_t tm_files; - if (glob(String(TOMO_HOME"/installed/", use->path, "/[!._0-9]*.tm"), GLOB_TILDE, NULL, &tm_files) != 0) + if (glob(String(TOMO_PREFIX"/share/tomo/installed/", use->path, "/[!._0-9]*.tm"), GLOB_TILDE, NULL, &tm_files) != 0) code_err(ast, "Could not find library"); CORD initialization = CORD_EMPTY; -- cgit v1.2.3