From 07c8fe6f2612161947f571d23de26ba7e59a1e5d Mon Sep 17 00:00:00 2001
From: Luigi Scarso <luigi.scarso@gmail.com>
Date: Thu, 8 Jun 2017 12:41:20 +0000
Subject: [PATCH] sync luatex 1.0.4 with texlive revision revision 44525.

---
 source/texk/web2c/luatexdir/lua/liolibext.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/source/texk/web2c/luatexdir/lua/liolibext.c b/source/texk/web2c/luatexdir/lua/liolibext.c
index e910139c2..958cbb67b 100644
--- a/source/texk/web2c/luatexdir/lua/liolibext.c
+++ b/source/texk/web2c/luatexdir/lua/liolibext.c
@@ -365,7 +365,7 @@ static int checkpermission(lua_State *L)
         lua_pushliteral(L,"all command execution is disabled");
     } else if (restrictedshell == 0) {
         lua_pushboolean(L,1);
-        lua_pushliteral(L,"all commands are permitted");
+        lua_pushstring(L,filename);
     } else {
         char *safecmd = NULL;
         char *cmdname = NULL;
@@ -374,10 +374,6 @@ static int checkpermission(lua_State *L)
                 lua_pushboolean(L,0);
                 lua_pushliteral(L, "specific command execution disabled");
                 break;
-            case 1:
-                lua_pushboolean(L,1);
-                lua_pushstring(L,filename);
-                break;
             case 2:
                 lua_pushboolean(L,1);
                 lua_pushstring(L,safecmd);
-- 
GitLab