aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-03-04 21:25:38 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-03-04 21:25:38 -0800
commit520cc099971584913e8b8eca811849c7e2e6ce67 (patch)
treeb3b598f5b7261171595e2ffc3c4cd97e48621c5a /src
parent2cfdad33811472603e97127155ea77ef748bc49c (diff)
downloadteliva-520cc099971584913e8b8eca811849c7e2e6ce67.tar.gz
include caller in sandboxing messages
Diffstat (limited to 'src')
-rw-r--r--src/liolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liolib.c b/src/liolib.c
index e85b097..75876d2 100644
--- a/src/liolib.c
+++ b/src/liolib.c
@@ -134,7 +134,7 @@ static int io_open (lua_State *L) {
if (file_operation_permitted(caller(L), filename, mode))
*pf = fopen(filename, mode);
else {
- snprintf(iolib_errbuf, 1024, "app tried to open file '%s'; adjust its permissions (ctrl-p) if that is expected", filename);
+ snprintf(iolib_errbuf, 1024, "app tried to open file '%s' from caller '%s'; adjust its permissions (ctrl-p) if that is expected", filename, caller(L));
Previous_message = iolib_errbuf;
}
return (*pf == NULL) ? pushresult(L, 0, filename) : 1;