X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/7f0bf1cb30e4c9cb751903ae1e7b235760bcfd00..0ef5abcbbb95298fa9faf1d3eb275a9e76e1d951:/checksum-xattr.diff diff --git a/checksum-xattr.diff b/checksum-xattr.diff index 53d1319..bd6d3de 100644 --- a/checksum-xattr.diff +++ b/checksum-xattr.diff @@ -11,7 +11,7 @@ To use this patch, run these commands for a successful build: diff --git a/flist.c b/flist.c --- a/flist.c +++ b/flist.c -@@ -1250,7 +1250,8 @@ struct file_struct *make_file(const char *fname, struct file_list *flist, +@@ -1286,7 +1286,8 @@ struct file_struct *make_file(const char *fname, struct file_list *flist, memcpy(bp + basename_len, linkname, linkname_len); #endif @@ -24,7 +24,7 @@ diff --git a/flist.c b/flist.c diff --git a/generator.c b/generator.c --- a/generator.c +++ b/generator.c -@@ -721,7 +721,8 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st) +@@ -724,7 +724,8 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st) of the file time to determine whether to sync */ if (always_checksum > 0 && S_ISREG(st->st_mode)) { char sum[MAX_DIGEST_LEN]; @@ -38,9 +38,10 @@ diff --git a/support/xsums b/support/xsums new file mode 100644 --- /dev/null +++ b/support/xsums -@@ -0,0 +1,118 @@ -+#!/usr/bin/perl -w +@@ -0,0 +1,119 @@ ++#!/usr/bin/perl +use strict; ++use warnings; + +use Getopt::Long; +use Cwd qw(abs_path cwd); @@ -191,7 +192,7 @@ diff --git a/xattrs.c b/xattrs.c continue; } -@@ -891,6 +899,39 @@ int del_def_xattr_acl(const char *fname) +@@ -894,6 +902,39 @@ int del_def_xattr_acl(const char *fname) } #endif @@ -202,7 +203,7 @@ diff --git a/xattrs.c b/xattrs.c + char buf[256]; + uint32 file_length, mtime; + int len; -+ ++ + len = sys_lgetxattr(fname, mdattr, buf, sizeof buf); + if (len < 0) { + if (errno == ENOTSUP || errno == ENOATTR)