X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Fafp_options.c;h=5cb205dbe7199eb2d6966533490d4538af8ee75e;hb=465246e257d9aff9855e3e35d8fd5983db932b45;hp=f3724c13cdbd6d05f8403b6a753839e9c1f207c0;hpb=3815df691518846b035effeb798677655f74e3e6;p=netatalk.git diff --git a/etc/afpd/afp_options.c b/etc/afpd/afp_options.c index f3724c13..5cb205db 100644 --- a/etc/afpd/afp_options.c +++ b/etc/afpd/afp_options.c @@ -34,8 +34,8 @@ #include #include #include +#include -#include "globals.h" #include "status.h" #include "auth.h" #include "dircache.h" @@ -350,8 +350,11 @@ int afp_options_parseline(char *buf, struct afp_options *options) while (NULL != (c = strstr(c, "-setuplog"))) { char *optstr; if ((optstr = getoption(c, "-setuplog"))) { + /* hokey2: options->logconfig must be converted to store an array of logstrings */ + if (options->logconfig) + free(options->logconfig); + options->logconfig = strdup(optstr); setuplog(optstr); - options->logconfig = optstr; /* at least store the last (possibly only) one */ c += sizeof("-setuplog"); } }