From c8ee1a059b4484575b03ac76b469df85cdabdd9a Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 24 Aug 2015 17:42:35 +0200 Subject: [PATCH] vfs_fruit: add and use define for the Netatalk metadata xattr Bug: https://bugzilla.samba.org/show_bug.cgi?id=11466 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_fruit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 25a86c15314..f9a5af73668 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -104,11 +104,12 @@ static int vfs_fruit_debug_level = DBGC_VFS; * REVIEW: * This is hokey, but what else can we do? */ +#define NETATALK_META_XATTR "org.netatalk.Metadata" #if defined(HAVE_ATTROPEN) || defined(FREEBSD) -#define AFPINFO_EA_NETATALK "org.netatalk.Metadata" +#define AFPINFO_EA_NETATALK NETATALK_META_XATTR #define AFPRESOURCE_EA_NETATALK "org.netatalk.ResourceFork" #else -#define AFPINFO_EA_NETATALK "user.org.netatalk.Metadata" +#define AFPINFO_EA_NETATALK "user." NETATALK_META_XATTR #define AFPRESOURCE_EA_NETATALK "user.org.netatalk.ResourceFork" #endif