Blame SOURCES/7.4.089

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.089
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.089
22c937
Problem:    When editing a file in a directory mounted through sshfs Vim
22c937
            doesn't set the security context on a renamed file.
22c937
Solution:   Add mch_copy_sec() to vim_rename(). (Peter Backes)
22c937
Files:      src/fileio.c
22c937
22c937
22c937
*** ../vim-7.4.088/src/fileio.c	2013-08-30 17:06:56.000000000 +0200
22c937
--- src/fileio.c	2013-11-12 05:07:22.000000000 +0100
22c937
***************
22c937
*** 6707,6712 ****
22c937
--- 6707,6715 ----
22c937
      mch_set_acl(to, acl);
22c937
      mch_free_acl(acl);
22c937
  #endif
22c937
+ #ifdef HAVE_SELINUX
22c937
+     mch_copy_sec(from, to)
22c937
+ #endif
22c937
      if (errmsg != NULL)
22c937
      {
22c937
  	EMSG2(errmsg, to);
22c937
*** ../vim-7.4.088/src/version.c	2013-11-12 04:43:57.000000000 +0100
22c937
--- src/version.c	2013-11-12 05:11:02.000000000 +0100
22c937
***************
22c937
*** 740,741 ****
22c937
--- 740,743 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     89,
22c937
  /**/
22c937
22c937
-- 
22c937
Kiss me twice.  I'm schizophrenic.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///