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