Fixed a compile problem in the non-Linux code.
authorWayne Davison <wayned@samba.org>
Fri, 3 Nov 2006 07:59:02 +0000 (07:59 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 3 Nov 2006 07:59:02 +0000 (07:59 +0000)
xattrs.diff

index cbde400ac6b75a59741439fc5f7cedb8f9f9689c..4a23f45dcbae201b641ca2ba934ecb55fdec92bb 100644 (file)
@@ -888,7 +888,7 @@ TODO:
 +#ifndef HAVE_LINUX_XATTRS
 +                      /* This OS only sends the user namespace, so we may have
 +                       * stored a root namespace from Linux in user space. */
-+                      if (strncmp(ptr, ROOT_PREFIX, RPRE_LEN) != 0) {
++                      if (strncmp(rxa->name, ROOT_PREFIX, RPRE_LEN) != 0) {
 +                              write_int(f, rxa->name_len + UPRE_LEN);
 +                              write_int(f, rxa->datum_len);
 +                              write_buf(f, USER_PREFIX, UPRE_LEN);