[PATCH] Make Samba/Spotlight work with macOS 10.12
slow at samba.org
slow at samba.org
Tue Feb 14 17:42:06 UTC 2017
Hi!
Attached is a small patch for bug 12545.
Please review&push if happy. Thanks!
Cheerio!
-slow
-------------- next part --------------
From 60147238f16eb0a2299cd39e41e6e35fdb03d11c Mon Sep 17 00:00:00 2001
From: Ralph Boehme <slow at samba.org>
Date: Tue, 31 Jan 2017 16:09:55 +0100
Subject: [PATCH] s3/rpc_server/mdssvc: add attribute "kMDItemContentType"
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12545
Signed-off-by: Ralph Boehme <slow at samba.org>
---
source3/rpc_server/mdssvc/sparql_mapping.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/source3/rpc_server/mdssvc/sparql_mapping.c b/source3/rpc_server/mdssvc/sparql_mapping.c
index a3baf09..c71c7a5 100644
--- a/source3/rpc_server/mdssvc/sparql_mapping.c
+++ b/source3/rpc_server/mdssvc/sparql_mapping.c
@@ -133,6 +133,11 @@ const struct sl_attr_map *sl_attr_map_by_spotlight(const char *sl_attr)
.type = ssmt_type,
.sparql_attr = NULL,
},
+ {
+ .spotlight_attr = "kMDItemContentType",
+ .type = ssmt_type,
+ .sparql_attr = NULL,
+ },
/* Image metadata */
{
--
2.9.3
More information about the samba-technical
mailing list