]> git.pld-linux.org Git - packages/vim.git/blame - 7.0.235
- updated to 0.7.3
[packages/vim.git] / 7.0.235
CommitLineData
468bf62c
AM
1To: vim-dev@vim.org
2Subject: patch 7.0.235
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.0.235
11Problem: It is possible to use writefile() in the sandbox.
12Solution: Add a few more checks for the sandbox.
13Files: src/eval.c
14
15
16*** ../vim-7.0.234/src/eval.c Fri Apr 27 22:17:43 2007
17--- src/eval.c Sat Apr 28 21:36:02 2007
18***************
19*** 15598,15603 ****
20--- 15598,15606 ----
21 int err = FALSE;
22 FILE *fd;
23
24+ if (check_restricted() || check_secure())
25+ return;
26+
27 if (argvars[1].v_type != VAR_UNKNOWN)
28 {
29 /*
30***************
31*** 16430,16435 ****
32--- 16433,16441 ----
33 char_u *s;
34 int ret = 0;
35 int c;
36+
37+ if (check_restricted() || check_secure())
38+ return;
39
40 if (argvars[0].v_type != VAR_LIST)
41 {
42*** ../vim-7.0.234/src/version.c Fri Apr 27 22:17:43 2007
43--- src/version.c Sun Apr 29 13:54:29 2007
44***************
45*** 668,669 ****
46--- 668,671 ----
47 { /* Add new patch number below this line */
48+ /**/
49+ 235,
50 /**/
51
52--
53Now it is such a bizarrely improbable coincidence that anything as
54mind-bogglingly useful as the Babel fish could have evolved purely by chance
55that some thinkers have chosen to see it as a final and clinching proof of the
56NON-existence of God.
57The argument goes something like this: 'I refuse to prove that I exist,' says
58God, 'for proof denies faith, and without faith I am nothing.'
59'But,' says Man, 'the Babel fish is a dead giveaway, isn't it? It could not
60have evolved by chance. It proves you exist, and so therefore, by your own
61arguments, you don't. QED.'
62'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
63puff of logic.
64'Oh, that was easy,' says Man, and for an encore goes on to prove that black
65is white and gets himself killed on the next pedestrian crossing.
66 -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
67
68 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
69/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70\\\ download, build and distribute -- http://www.A-A-P.org ///
71 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.043879 seconds and 4 git commands to generate.