]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_dsi.c
netatalk: fix a crash on Solaris when registering with mDNS
[netatalk.git] / etc / afpd / afp_dsi.c
index a6de766aad2d54c92ab17778a685a2261e0a7220..e3823de594b7d3f651d203e979df400a496644ae 100644 (file)
@@ -493,13 +493,6 @@ void afp_over_dsi(AFPObj *obj)
     int flag = 1;
     setsockopt(dsi->socket, SOL_TCP, TCP_NODELAY, &flag, sizeof(flag));
 
-#ifdef HAVE_TRACKER
-    /* Initialize Spotlight */
-    if (obj->options.flags & OPTION_SPOTLIGHT) {
-        spotlight_init(obj);
-    }
-#endif
-
     ipc_child_state(obj, DSI_RUNNING);
 
     /* get stuck here until the end */
@@ -554,7 +547,7 @@ void afp_over_dsi(AFPObj *obj)
 
         if (reload_request) {
             reload_request = 0;
-            load_volumes(AFPobj, lv_none);
+            load_volumes(AFPobj, lv_force);
         }
 
         /* The first SIGINT enables debugging, the next restores the config */
@@ -648,7 +641,7 @@ void afp_over_dsi(AFPObj *obj)
                     replaycache[rc_idx].AFPcommand = function;
                     replaycache[rc_idx].result = err;
                 } else {
-                    LOG(log_error, logtype_afpd, "bad function %X", function);
+                    LOG(log_maxdebug, logtype_afpd, "bad function %X", function);
                     dsi->datalen = 0;
                     err = AFPERR_NOOP;
                 }