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