summaryrefslogtreecommitdiff
path: root/lua/lua_bindings.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lua_bindings.c')
-rw-r--r--lua/lua_bindings.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lua/lua_bindings.c b/lua/lua_bindings.c
index c711b66..1969118 100644
--- a/lua/lua_bindings.c
+++ b/lua/lua_bindings.c
@@ -389,13 +389,15 @@ char *scratchbox_path(const char *func_name, const char *path)
char pidlink[17]; /* /proc/2^8/exe */
if (!path) return NULL;
+ if (getenv("SBOX_DISABLE_MAPPING")) {
+ return strdup(path);
+ }
decolon_path = decolonize_path(path);
- if (strstr(decolon_path, getenv("SBOX_TARGET_ROOT"))
- || strstr(decolon_path, getenv("HOME"))) {
+ if (strstr(decolon_path, getenv("SBOX_TARGET_ROOT"))) {
/* short circuit a direct reference to a file inside the sbox
- * target dir, or to $HOME dir */
+ * target dir */
//DBGOUT("about to short circuit: %s\n", func_name);
free(decolon_path);
return strdup(path);