diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2010-10-27 02:53:42 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2010-10-27 02:53:42 +0200 |
commit | 76d0e43140e83602ecca0073f2ee5515c3a9613b (patch) | |
tree | d00898bcd03371cde4b75d3f3b9a150e37efd973 /.gitignore | |
parent | 28113637f563534c5b4e1a462c39069b837d31d9 (diff) | |
download | patch-76d0e43140e83602ecca0073f2ee5515c3a9613b.tar.gz |
Preserve extended attributes of patched files when possible
* src/patch.c (main): Set all file attributes of the temporary output
file before renaming it over the final output file (possibly replacing
the input file). Pass the input file name to set_file_attributes().
* src/util.c (set_file_attributes): When enabled (USE_XATTR), also
copy extended attributes including attributes which define
permissions.
(copy_attr_error, copy_attr_quote, copy_attr_free, copy_attr_check,
copy_attr): Helper functions for copying extended attributes.
* m4/xattr.m4 (gl_FUNC_XATTR): Import from coreutils.
* src/Makefile.am (patch_LDADD): Add $(LIB_XATTR) here.
* bootstrap.conf: Use the gnulib verror module.
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -15,7 +15,6 @@ /config.status /configure /lib -/m4 /patch-*.tar.bz2 /patch-*.tar.bz2.sig /patch-*.tar.gz |