From 8b99e27833ca9511e45f6ea164286f182348db66 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 7 Jun 2017 08:53:28 +0000 Subject: luatexdir/lua/liolibext.c; Fix typos which lead to a bug in io.popen() pointed out by gregorio team git-svn-id: svn://tug.org/texlive/trunk@44518 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/lua/liolibext.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Build/source/texk/web2c') diff --git a/Build/source/texk/web2c/luatexdir/lua/liolibext.c b/Build/source/texk/web2c/luatexdir/lua/liolibext.c index e910139c2ce..958cbb67b43 100644 --- a/Build/source/texk/web2c/luatexdir/lua/liolibext.c +++ b/Build/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); -- cgit v1.2.3