]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_options.c
sigquit
[netatalk.git] / etc / afpd / afp_options.c
index f3724c13cdbd6d05f8403b6a753839e9c1f207c0..ab33ebee786f673032beb7ec5c32e2455ffab167 100644 (file)
@@ -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");
         }
     }