]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/appl.c
Spotlight: use async Tracker SPARQL API
[netatalk.git] / etc / afpd / appl.c
index 04dd92d612b61cb2e2dae143a7f438ae13962d0c..f53803e0dfc5f92ebcb5188ede9a146d2922a7b9 100644 (file)
@@ -170,7 +170,11 @@ makemacpath(const struct vol *vol, char *mpath, int mpathlen, struct dir *dir, c
         }
 
         /* next part */
-        if ((uname = cnid_resolve(vol->v_cdb, &cnid, buffer, buflen)) == NULL ) {
+        AFP_CNID_START("cnid_resolve");
+        uname = cnid_resolve(vol->v_cdb, &cnid, buffer, buflen);
+        AFP_CNID_DONE();
+
+        if (uname == NULL) {
             afp_errno = AFPERR_NOOBJ;
             ret = NULL;
             goto exit;