Mercurial > vim
diff src/os_unix.c @ 5800:da17c7de616e v7.4.244
updated for version 7.4.244
Problem: The smack feature causes stray error messages.
Solution: Remove the error messages.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 02 Apr 2014 23:09:26 +0200 |
parents | 410ef4f1a3d2 |
children | e4cd5bb75029 |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -2875,14 +2875,8 @@ mch_copy_sec(from_file, to_file) case ENODATA: /* no attribute of this name */ ret = removexattr((char*)to_file, name); - if (ret < 0 && errno != ENODATA) - { - MSG_PUTS(_("Could not remove security context ")); - MSG_PUTS(name); - MSG_PUTS(_(" for ")); - msg_outtrans(to_file); - msg_putchar('\n'); - } + /* Silently ignore errors, apparently this happens when + * smack is not actually being used. */ break; } }