From: Wayne Davison Date: Sat, 4 Nov 2006 08:14:39 +0000 (+0000) Subject: Fixed length check when excluding XSTAT_ATTR. X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/commitdiff_plain/9b90e0b3385e74a5894a4092fd68395395c8ce77 Fixed length check when excluding XSTAT_ATTR. --- diff --git a/fake-super.diff b/fake-super.diff index cebe34a..1135994 100644 --- a/fake-super.diff +++ b/fake-super.diff @@ -464,7 +464,7 @@ above: continue; #endif -+ if (am_root < 0 && name_len == XSTAT_LEN ++ if (am_root < 0 && name_len == XSTAT_LEN + 1 + && name[CENT_POS] == '%' && strcmp(name, XSTAT_ATTR) == 0) + continue; + @@ -518,7 +518,7 @@ above: memcpy(name, RSYNC_PREFIX, RPRE_LEN); } #endif -+ if (am_root < 0 && name_len == XSTAT_LEN ++ if (am_root < 0 && name_len == XSTAT_LEN + 1 + && name[CENT_POS] == '%' && strcmp(name, XSTAT_ATTR) == 0) { + free(ptr); + continue;