]> arthur.barton.de Git - netatalk.git/commit - etc/afpd/spotlight.c
Fix searching from OS X cmdline
authorFrank Lahm <franklahm@googlemail.com>
Wed, 24 Oct 2012 07:38:31 +0000 (09:38 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Wed, 24 Oct 2012 07:38:31 +0000 (09:38 +0200)
commit4350426e2528a5765642f388e06e9ac6ff75fafd
treeda81f2d21f904741753b7b4aefc415903c60a979
parent92aeeeb531e26df27995a2ef37152ab4e9dde66c
Fix searching from OS X cmdline

Searching from OS X cmdline with `mdfind` will generate queries with
an empty query attribute array. In that case we must add a nil element
for every query match to the filemeta array.

Also fixed:
* marshalling of empty CNID arrays and filemeta
* return 0x23 instead of 0 when returning a non empty result list, this
  is was traces of an OS X AFP server show
etc/afpd/spotlight.c
etc/afpd/spotlight_marshalling.c
etc/afpd/spotlight_module.c