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