still_abbrev:
if (am_generator)
continue;
-@@ -812,14 +871,8 @@ static int rsync_xal_set(const char *fname, item_list *xalp,
- ret = -1;
- continue;
+@@ -817,9 +876,7 @@ static int rsync_xal_set(const char *fname, item_list *xalp,
+ goto still_abbrev;
}
-- if (len != rxas[i].datum_len) {
-- free(ptr);
-- goto still_abbrev;
-- }
- sum_init(checksum_seed);
- sum_update(ptr, len);
if (memcmp(sum, rxas[i].datum + 1, MAX_DIGEST_LEN) != 0) {
free(ptr);
goto still_abbrev;
-@@ -888,6 +941,10 @@ static int rsync_xal_set(const char *fname, item_list *xalp,
+@@ -888,6 +945,10 @@ static int rsync_xal_set(const char *fname, item_list *xalp,
}
}
return ret;
}
-@@ -934,7 +991,7 @@ char *get_xattr_acl(const char *fname, int is_access_acl, size_t *len_p)
+@@ -934,7 +995,7 @@ char *get_xattr_acl(const char *fname, int is_access_acl, size_t *len_p)
{
const char *name = is_access_acl ? XACC_ACL_ATTR : XDEF_ACL_ATTR;
*len_p = 0; /* no extra data alloc needed from get_xattr_data() */
}
int set_xattr_acl(const char *fname, int is_access_acl, const char *buf, size_t buf_len)
-@@ -1082,6 +1139,21 @@ int x_stat(const char *fname, STRUCT_STAT *fst, STRUCT_STAT *xst)
+@@ -1082,6 +1143,21 @@ int x_stat(const char *fname, STRUCT_STAT *fst, STRUCT_STAT *xst)
int ret = do_stat(fname, fst);
if ((ret < 0 || get_stat_xattr(fname, -1, fst, xst) < 0) && xst)
xst->st_mode = 0;