From 0889381cbfdbb4895e6b8693d14c0f5c77bc85bc Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 23 Jan 2009 12:17:53 +0100 Subject: cp/mv: add xattr support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch was originally written by Andreas Grünbacher, nowadays available at http://www.suse.de/~agruen/coreutils/5.91/coreutils-xattr.diff * bootstrap.conf: Add gnulib module verror. * po/POTFILES.in: Add lib/verror.c. * m4/xattr.m4: Check for libattr availability, new configure option --disable-xattr. * m4/prereq.m4: Require gl_FUNC_XATTR. * src/Makefile.am: Link cp, mv and ginstall with libattr. * src/copy.h: Add preserve_xattr and require_preserve_xattr to cp_options. * src/copy.c (copy_attr_error): New function to handle errors during xattr copying. (copy_attr_quote): New function to quote file name in error messages printed by libattr. (copy_attr_free): Empty function requested by libattr to free quoted string. (copy_attr_by_fd): New fd-oriented function to copy xattr. (copy_attr_by_name): New name-oriented function to copy xattr. (copy_reg, copy_internal): Call copy_extended_attributes function. * src/cp.c (usage): Mention new --preserve=xattr option. (decode_preserve_arg): Handle new --preserve=xattr option. * src/mv.c: Always attempt to preserve xattr. * src/install.c: Never attempt to preserve xattr. * tests/misc/xattr: New test for xattr support in cp, mv and install. * tests/Makefile.am: Add the new test to list. * doc/coreutils.texi: Mention xattr support, new --preserve=xattr option. * NEWS: Mention the change. --- bootstrap.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap.conf') diff --git a/bootstrap.conf b/bootstrap.conf index 1388782be..89564fe29 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -102,7 +102,7 @@ gnulib_modules=" userspec utimecmp utimens vasprintf-posix vc-list-files - verify version-etc-fsf + verify version-etc-fsf verror warnings wcwidth winsz-ioctl winsz-termios write-any-file xalloc -- cgit v1.2.3-54-g00ecf