]> arthur.barton.de Git - netatalk.git/blobdiff - etc/spotlight/slmod_rdf.c
Merge remote-tracking branch 'origin/develop' into spotlight
[netatalk.git] / etc / spotlight / slmod_rdf.c
index a09d5ae1fc636dc5031b1c68bf69b828e5d5c7a5..69855fe037f362832abe87750df7f4157cc208a9 100644 (file)
@@ -197,6 +197,13 @@ static int sl_mod_fetch_result(void *p)
                 firstmatch = false;
             }
 
+            struct stat st;
+            if (stat(respath, &st) != 0) {
+                if (errno == ENOENT)
+                    tracker_files_delete(client, respath, NULL);
+                goto loop_continue;
+            }
+
             if ((id = cnid_for_path(slq->slq_vol->v_cdb, slq->slq_vol->v_path, respath, &did)) == CNID_INVALID) {
                 LOG(log_error, logtype_sl, "sl_mod_fetch_result: cnid_for_path error: %s", respath);
                 goto loop_continue;