X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fafp_config.c;h=4b451527c87230584a783d5713c361498d36ab6c;hb=b0bcb8f6b0571592a50ce039882c9319e012a270;hp=f3adf7bf05406687fc7dcf5ede83e8cc2bdee394;hpb=5ab4f0463c00263b3d842f1e1a3648ecf35b4d65;p=netatalk.git diff --git a/etc/afpd/afp_config.c b/etc/afpd/afp_config.c index f3adf7bf..4b451527 100644 --- a/etc/afpd/afp_config.c +++ b/etc/afpd/afp_config.c @@ -33,7 +33,7 @@ #include #endif -#include "globals.h" +#include #include "afp_config.h" #include "uam_auth.h" #include "status.h" @@ -210,6 +210,7 @@ static AFPConfig *DSIConfigInit(const struct afp_options *options, free(config); return NULL; } + dsi->dsireadbuf = options->dsireadbuf; if (options->flags & OPTION_PROXY) { LOG(log_note, logtype_afpd, "AFP/TCP proxy initialized for %s:%d (%s)", @@ -425,8 +426,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; }