The non-linux version should not strip the "rsync." prefix from any
authorWayne Davison <wayned@samba.org>
Sat, 4 Nov 2006 18:01:30 +0000 (18:01 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 4 Nov 2006 18:01:30 +0000 (18:01 +0000)
name that starts with a '%'.  This makes all xattr-enabled rsync
versions compatible with xattrs generated by a fake-super enabled
version, and supports any future %-names that we might want to put
in this hierarchy.

xattrs.diff

index a6def17..6ce2f24 100644 (file)
@@ -629,7 +629,7 @@ TODO:
  transfer.  The resulting value is treated as though it was the permissions
 --- old/xattr.c
 +++ new/xattr.c
-@@ -0,0 +1,414 @@
+@@ -0,0 +1,415 @@
 +/*
 + * Extended Attribute support for rsync.
 + * Written by Jay Fenlason, vaguely based on the ACLs patch.
@@ -895,7 +895,8 @@ TODO:
 +#else
 +                      /* We strip the rsync prefix from disguised namespaces
 +                       * and put everything else in the user namespace. */
-+                      if (HAS_PREFIX(rxa->name, RSYNC_PREFIX)) {
++                      if (HAS_PREFIX(rxa->name, RSYNC_PREFIX)
++                       && rxa->name[RPRE_LEN] != '%') {
 +                              write_int(f, rxa->name_len - RPRE_LEN);
 +                              write_int(f, rxa->datum_len);
 +                              write_buf(f, rxa->name + RPRE_LEN, rxa->name_len - RPRE_LEN);