diff options
author | Karl Berry <karl@freefriends.org> | 2009-02-26 19:44:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-02-26 19:44:17 +0000 |
commit | fd209ee79002d0d87c3835c8e2697ed0eb7cc53c (patch) | |
tree | 4e2d10d678beb337d03b525d939068b6ebb55b24 /Build/source/texk/web2c/pdftexdir | |
parent | 6226ce8e1a87017d3c958d63660c83b669e4da9a (diff) |
new restricted mode for \write18
git-svn-id: svn://tug.org/texlive/trunk@12244 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/NEWS | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/pdftex.web | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/NEWS b/Build/source/texk/web2c/pdftexdir/NEWS index 97d9bd6195c..fb85263a5c0 100644 --- a/Build/source/texk/web2c/pdftexdir/NEWS +++ b/Build/source/texk/web2c/pdftexdir/NEWS @@ -1,3 +1,5 @@ + - \pdfshellescape is 2 if restricted shell escapes are enabled. + -------------------------------------------------- pdfTeX 3.1415926-1.40.9 was released on 2008-08-?? -------------------------------------------------- diff --git a/Build/source/texk/web2c/pdftexdir/pdftex.web b/Build/source/texk/web2c/pdftexdir/pdftex.web index 49a81e30606..a2b9f3abda2 100644 --- a/Build/source/texk/web2c/pdftexdir/pdftex.web +++ b/Build/source/texk/web2c/pdftexdir/pdftex.web @@ -9818,7 +9818,10 @@ if m>=input_line_no_code then random_seed_code: cur_val := random_seed; pdf_shell_escape_code: begin - if shell_enabled_p then cur_val := 1 + if shellenabledp then begin + if restrictedshell then cur_val :=2 + else cur_val := 1; + end else cur_val := 0; end; pdf_last_link_code: cur_val := pdf_last_link; |