]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_config.c
Merge remote branch 'sf/master'
[netatalk.git] / etc / afpd / afp_config.c
index 790ee2fffbf9e7b0e0c9afa98ae2de32444fb544..291148c3458eeeca77432d751f5813128620d198 100644 (file)
@@ -36,7 +36,7 @@
 #include <atalk/ldapconfig.h>
 #endif
 
-#include "globals.h"
+#include <atalk/globals.h>
 #include "afp_config.h"
 #include "uam_auth.h"
 #include "status.h"
@@ -591,8 +591,10 @@ AFPConfig *configinit(struct afp_options *cmdline)
         first = AFPConfigInit(cmdline, cmdline);
 
     /* Now register with zeroconf, we also need the volumes for that */
-    load_volumes(&first->obj);
-    zeroconf_register(first);
+    if (! (first->obj.options.flags & OPTION_NOZEROCONF)) {
+        load_volumes(&first->obj);
+        zeroconf_register(first);
+    }
 
     return first;
 }