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