Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78698a6
)
Fixed length check when excluding XSTAT_ATTR.
author
Wayne Davison
<wayned@samba.org>
Sat, 4 Nov 2006 08:14:39 +0000
(08:14 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 4 Nov 2006 08:14:39 +0000
(08:14 +0000)
fake-super.diff
patch
|
blob
|
blame
|
history
diff --git
a/fake-super.diff
b/fake-super.diff
index
cebe34a
..
1135994
100644
(file)
--- 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;