X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/7f0bf1cb30e4c9cb751903ae1e7b235760bcfd00..963ca80882dea2131e78563fa59e3e0e7c70c195:/checksum-xattr.diff diff --git a/checksum-xattr.diff b/checksum-xattr.diff index 53d1319..0515194 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 @@ -191,7 +191,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 +202,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)