[PATCH] Make Samba/Spotlight work with macOS 10.12

Jeremy Allison jra at samba.org
Wed Feb 15 01:25:23 UTC 2017


On Tue, Feb 14, 2017 at 06:42:06PM +0100, slow at samba.org wrote:
> Hi!
> 
> Attached is a small patch for bug 12545.
> 
> Please review&push if happy. Thanks!

Not my area, but I'll believe you Ralph ! :-).

LGTM.


> 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