]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
Merge branch 2-1: Fix for uninitialized AFP signature. From HAT.
[netatalk.git] / etc / afpd / afp_options.c
index ebc9a653e79e1ee890de1d051fd2cec6d7be4d73..c86c485900d5e38f8b55d054cbfc26f968768e5d 100644 (file)
@@ -47,6 +47,7 @@ char *strchr (), *strrchr ();
 #include "globals.h"
 #include "status.h"
 #include "auth.h"
+#include "dircache.h"
 
 #include <atalk/compat.h>
 
@@ -196,6 +197,7 @@ void afp_options_init(struct afp_options *options)
     /* don't advertize slp by default */
     options->flags |= OPTION_NOSLP;
 #endif
+    options->dircachesize = DEFAULT_MAX_DIRCACHE_SIZE;
 }
 
 /* parse an afpd.conf line. i'm doing it this way because it's
@@ -450,6 +452,9 @@ int afp_options_parseline(char *buf, struct afp_options *options)
     if ((c = getoption(buf, "-ntseparator")) && (opt = strdup(c)))
        options->ntseparator = opt;
 
+    if ((c = getoption(buf, "-dircachesize")))
+        options->dircachesize = atoi(c);
+     
     return 1;
 }