3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.244
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.244 (after 7.4.238)
3ef2ca
Problem:    The smack feature causes stray error messages.
3ef2ca
Solution:   Remove the error messages.
3ef2ca
Files:      src/os_unix.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.243/src/os_unix.c	2014-04-02 14:05:33.999887839 +0200
3ef2ca
--- src/os_unix.c	2014-04-02 23:08:25.967439786 +0200
3ef2ca
***************
3ef2ca
*** 2875,2888 ****
3ef2ca
  		case ENODATA:
3ef2ca
  		    /* no attribute of this name */
3ef2ca
  		    ret = removexattr((char*)to_file, name);
3ef2ca
! 		    if (ret < 0 && errno != ENODATA)
3ef2ca
! 		    {
3ef2ca
! 			MSG_PUTS(_("Could not remove security context "));
3ef2ca
! 			MSG_PUTS(name);
3ef2ca
! 			MSG_PUTS(_(" for "));
3ef2ca
! 			msg_outtrans(to_file);
3ef2ca
! 			msg_putchar('\n');
3ef2ca
! 		    }
3ef2ca
  		    break;
3ef2ca
  	    }
3ef2ca
  	}
3ef2ca
--- 2875,2882 ----
3ef2ca
  		case ENODATA:
3ef2ca
  		    /* no attribute of this name */
3ef2ca
  		    ret = removexattr((char*)to_file, name);
3ef2ca
! 		    /* Silently ignore errors, apparently this happens when
3ef2ca
! 		     * smack is not actually being used. */
3ef2ca
  		    break;
3ef2ca
  	    }
3ef2ca
  	}
3ef2ca
*** ../vim-7.4.243/src/version.c	2014-04-02 22:17:00.007482236 +0200
3ef2ca
--- src/version.c	2014-04-02 23:07:36.067440472 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     244,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
How To Keep A Healthy Level Of Insanity:
3ef2ca
2. Page yourself over the intercom. Don't disguise your voice.
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    ///