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