Karsten Hopp c1dd5a
To: vim_dev@googlegroups.com
Karsten Hopp c1dd5a
Subject: Patch 7.4.707
Karsten Hopp c1dd5a
Fcc: outbox
Karsten Hopp c1dd5a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c1dd5a
Mime-Version: 1.0
Karsten Hopp c1dd5a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp c1dd5a
Content-Transfer-Encoding: 8bit
Karsten Hopp c1dd5a
------------
Karsten Hopp c1dd5a
Karsten Hopp c1dd5a
Patch 7.4.707
Karsten Hopp c1dd5a
Problem:    Undo files can have their executable bit set.
Karsten Hopp c1dd5a
Solution:   Strip of the executable bit. (Mikael Berthe)
Karsten Hopp c1dd5a
Files:      src/undo.c
Karsten Hopp c1dd5a
Karsten Hopp c1dd5a
Karsten Hopp c1dd5a
*** ../vim-7.4.706/src/undo.c	2015-02-17 13:43:35.562216149 +0100
Karsten Hopp c1dd5a
--- src/undo.c	2015-04-21 16:01:51.702508121 +0200
Karsten Hopp c1dd5a
***************
Karsten Hopp c1dd5a
*** 1614,1621 ****
Karsten Hopp c1dd5a
  #endif
Karsten Hopp c1dd5a
      }
Karsten Hopp c1dd5a
  
Karsten Hopp c1dd5a
!     /* strip any s-bit */
Karsten Hopp c1dd5a
!     perm = perm & 0777;
Karsten Hopp c1dd5a
  
Karsten Hopp c1dd5a
      /* If the undo file already exists, verify that it actually is an undo
Karsten Hopp c1dd5a
       * file, and delete it. */
Karsten Hopp c1dd5a
--- 1614,1621 ----
Karsten Hopp c1dd5a
  #endif
Karsten Hopp c1dd5a
      }
Karsten Hopp c1dd5a
  
Karsten Hopp c1dd5a
!     /* strip any s-bit and executable bit */
Karsten Hopp c1dd5a
!     perm = perm & 0666;
Karsten Hopp c1dd5a
  
Karsten Hopp c1dd5a
      /* If the undo file already exists, verify that it actually is an undo
Karsten Hopp c1dd5a
       * file, and delete it. */
Karsten Hopp c1dd5a
*** ../vim-7.4.706/src/version.c	2015-04-21 15:43:00.342397536 +0200
Karsten Hopp c1dd5a
--- src/version.c	2015-04-21 16:00:54.979103468 +0200
Karsten Hopp c1dd5a
***************
Karsten Hopp c1dd5a
*** 743,744 ****
Karsten Hopp c1dd5a
--- 743,746 ----
Karsten Hopp c1dd5a
  {   /* Add new patch number below this line */
Karsten Hopp c1dd5a
+ /**/
Karsten Hopp c1dd5a
+     707,
Karsten Hopp c1dd5a
  /**/
Karsten Hopp c1dd5a
Karsten Hopp c1dd5a
-- 
Karsten Hopp c1dd5a
FIRST VILLAGER: We have found a witch.  May we burn her?
Karsten Hopp c1dd5a
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp c1dd5a
Karsten Hopp c1dd5a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c1dd5a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c1dd5a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp c1dd5a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///