lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
1abce51
To: vim_dev@googlegroups.com
1abce51
Subject: Patch 7.4.244
1abce51
Fcc: outbox
1abce51
From: Bram Moolenaar <Bram@moolenaar.net>
1abce51
Mime-Version: 1.0
1abce51
Content-Type: text/plain; charset=UTF-8
1abce51
Content-Transfer-Encoding: 8bit
1abce51
------------
1abce51
1abce51
Patch 7.4.244 (after 7.4.238)
1abce51
Problem:    The smack feature causes stray error messages.
1abce51
Solution:   Remove the error messages.
1abce51
Files:      src/os_unix.c
1abce51
1abce51
1abce51
*** ../vim-7.4.243/src/os_unix.c	2014-04-02 14:05:33.999887839 +0200
1abce51
--- src/os_unix.c	2014-04-02 23:08:25.967439786 +0200
1abce51
***************
1abce51
*** 2875,2888 ****
1abce51
  		case ENODATA:
1abce51
  		    /* no attribute of this name */
1abce51
  		    ret = removexattr((char*)to_file, name);
1abce51
! 		    if (ret < 0 && errno != ENODATA)
1abce51
! 		    {
1abce51
! 			MSG_PUTS(_("Could not remove security context "));
1abce51
! 			MSG_PUTS(name);
1abce51
! 			MSG_PUTS(_(" for "));
1abce51
! 			msg_outtrans(to_file);
1abce51
! 			msg_putchar('\n');
1abce51
! 		    }
1abce51
  		    break;
1abce51
  	    }
1abce51
  	}
1abce51
--- 2875,2882 ----
1abce51
  		case ENODATA:
1abce51
  		    /* no attribute of this name */
1abce51
  		    ret = removexattr((char*)to_file, name);
1abce51
! 		    /* Silently ignore errors, apparently this happens when
1abce51
! 		     * smack is not actually being used. */
1abce51
  		    break;
1abce51
  	    }
1abce51
  	}
1abce51
*** ../vim-7.4.243/src/version.c	2014-04-02 22:17:00.007482236 +0200
1abce51
--- src/version.c	2014-04-02 23:07:36.067440472 +0200
1abce51
***************
1abce51
*** 736,737 ****
1abce51
--- 736,739 ----
1abce51
  {   /* Add new patch number below this line */
1abce51
+ /**/
1abce51
+     244,
1abce51
  /**/
1abce51
1abce51
-- 
1abce51
How To Keep A Healthy Level Of Insanity:
1abce51
2. Page yourself over the intercom. Don't disguise your voice.
1abce51
1abce51
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
1abce51
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
1abce51
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
1abce51
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///