]> git.pld-linux.org Git - packages/vim.git/blob - 7.0.235
- updated to 0.7.3
[packages/vim.git] / 7.0.235
1 To: vim-dev@vim.org
2 Subject: patch 7.0.235
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.0.235
11 Problem:    It is possible to use writefile() in the sandbox.
12 Solution:   Add a few more checks for the sandbox.
13 Files:      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 -- 
53 Now it is such a bizarrely improbable coincidence that anything as
54 mind-bogglingly useful as the Babel fish could have evolved purely by chance
55 that some thinkers have chosen to see it as a final and clinching proof of the
56 NON-existence of God.
57 The argument goes something like this: 'I refuse to prove that I exist,' says
58 God, '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
60 have evolved by chance.  It proves you exist, and so therefore, by your own
61 arguments, you don't.  QED.'
62 'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
63 puff of logic.
64 'Oh, that was easy,' says Man, and for an encore goes on to prove that black
65 is 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.030189 seconds and 3 git commands to generate.