summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luatex.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-11 13:32:26 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-11 13:32:26 +0000
commit453a9f4421fd7a166fa69189572f11c70a1acf4b (patch)
tree25b5af72cb4b07fe4fc78a0f71d155489c9df263 /Build/source/texk/web2c/luatexdir/luatex.c
parent4e25170b7c9bc4a0790412e731d36ed28106df66 (diff)
web2c/luatexdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@39348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luatex.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/luatex.c46
1 files changed, 3 insertions, 43 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luatex.c b/Build/source/texk/web2c/luatexdir/luatex.c
index b4735243870..f434524c821 100644
--- a/Build/source/texk/web2c/luatexdir/luatex.c
+++ b/Build/source/texk/web2c/luatexdir/luatex.c
@@ -29,9 +29,9 @@
#define TeX
int luatex_version = 87; /* \.{\\luatexversion} */
-int luatex_revision = '1'; /* \.{\\luatexrevision} */
-int luatex_date_info = 2015122000; /* the compile date is now hardwired */
-const char *luatex_version_string = "beta-0.87.1";
+int luatex_revision = '2'; /* \.{\\luatexrevision} */
+int luatex_date_info = 2016011100; /* the compile date is now hardwired */
+const char *luatex_version_string = "beta-0.87.2";
const char *engine_name = my_name; /* the name of this engine */
#include <kpathsea/c-ctype.h>
@@ -410,46 +410,6 @@ int shell_cmd_is_allowed(const char *cmd, char **safecmd, char **cmdname)
return allow;
}
-/* We should only be called with shellenabledp == 1.
- Return value:
- -1 if a quotation syntax error.
- 0 if CMD is not allowed; given shellenabledp==1, this is because
- shell escapes are restricted and CMD is not allowed.
- 1 if shell escapes are not restricted, hence any command is allowed.
- 2 if shell escapes are restricted and CMD is allowed. */
-
-int runsystem(const char *cmd)
-{
- int allow = 0;
- char *safecmd = NULL;
- char *cmdname = NULL;
- int status = 0;
- if (shellenabledp <= 0) {
- return 0;
- }
-
- /* If restrictedshell == 0, any command is allowed. */
- if (restrictedshell == 0)
- allow = 1;
- else
- allow = shell_cmd_is_allowed(cmd, &safecmd, &cmdname);
-
- if (allow == 1)
- status = system(cmd);
- else if (allow == 2)
- status = system(safecmd);
- /* Not really meaningful, but we have to manage the return value of system. */
- if (status==-1)
- fprintf(stderr,"system returned with code -1\n");
-
- if (safecmd)
- free(safecmd);
- if (cmdname)
- free(cmdname);
-
- return allow;
-}
-
#endif