Spotlight: FILTER in generated query doesn't handle nested directories with spaces

Mike M Pestorich mmpestorich at
Sat Aug 20 07:00:19 UTC 2016

Hi Ralph,

Thank you for pointing me to your previous Netatalk commit. I’m not an experienced C programmer so it was extremely helpful. A patch is attached and after some testing, it seems to be working as expected.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-rpc_server-Character-Encode-Spotlight-Queries.patch
Type: application/octet-stream
Size: 1681 bytes
Desc: not available
URL: <>
-------------- next part --------------

> On Aug 19, 2016, at 3:44 AM, Ralph Böhme <slow at> wrote:
> Hi Mike,
> On Fri, Aug 19, 2016 at 02:56:32AM -0700, Mike M Pestorich wrote:
>> I followed the directions at
>> <> and at first glance
>> everything seemed to be working great. However I noticed that if I
>> run a search from within a nested directory that directory’s path
>> contains spaces the query always returns no results.
> hm, guess we need a similar fix as the one I made in Netatalk some
> time ago:
> <>
> Can you craft a patch based on this?
> Cheerio!
> -slow

More information about the samba-technical mailing list