]> arthur.barton.de Git - netatalk.git/commitdiff
Fix volume loading in afpd session
authorRalph Boehme <sloowfranklin@gmail.com>
Thu, 6 Dec 2012 12:03:28 +0000 (13:03 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Thu, 6 Dec 2012 12:03:28 +0000 (13:03 +0100)
Due to the changes in 59ba70c884ca7356e28873fccab7d3611369e6cc
(SIGHUP support), volumes were not reloaded in the afpd session
child.

etc/afpd/afp_config.c

index 3d9aff81e32b35c762655829cb391271af81c672..61bbf6844d1cffce461bc9d8e60fbc4029687d21 100644 (file)
@@ -54,11 +54,12 @@ void configfree(AFPObj *obj, DSI *dsi)
         /* Master afpd reloading config */
         auth_unload();
         if (! (obj->options.flags & OPTION_NOZEROCONF)) {
-            unload_volumes(obj);
             zeroconf_deregister();
         }
     }
 
+    unload_volumes(obj);
+
     /* Master and child releasing unneeded DSI handles */
     for (p = obj->dsi; p; p = q) {
         q = p->next;