From 9b90e0b3385e74a5894a4092fd68395395c8ce77 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 4 Nov 2006 08:14:39 +0000 Subject: [PATCH] Fixed length check when excluding XSTAT_ATTR. --- fake-super.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.34.1