/* Get the actual len */
buffer = rpath(ctx, path);
+#ifdef CONFIG_LINUX
xattr_len = llistxattr(buffer, value, 0);
+#else
+ xattr_len = listxattr(buffer, value, 0, XATTR_NOFOLLOW);
+#endif
if (xattr_len <= 0) {
g_free(buffer);
return xattr_len;
/* Now fetch the xattr and find the actual size */
orig_value = g_malloc(xattr_len);
+#ifdef CONFIG_LINUX
xattr_len = llistxattr(buffer, orig_value, xattr_len);
+#else
+ xattr_len = listxattr(buffer, orig_value, xattr_len, XATTR_NOFOLLOW);
+#endif
g_free(buffer);
/* store the orig pointer */