]> arthur.barton.de Git - netatalk.git/commitdiff
Fix: add a '/' between basedir and subdir in the path for home volumes
authorFrank Lahm <franklahm@googlemail.com>
Thu, 11 Oct 2012 14:42:03 +0000 (16:42 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 11 Oct 2012 14:42:03 +0000 (16:42 +0200)
libatalk/util/netatalk_conf.c

index 01e782929f87bbf20bf8c4d5de717dc3ea1a5f21..b1d054c865b9bf95ccf06fc25160159af44b3bc1 100644 (file)
@@ -1036,8 +1036,10 @@ static int readvolfile(AFPObj *obj, const struct passwd *pwent)
                 continue;
             }
 
-            if (p = iniparser_getstring(obj->iniconfig, INISEC_HOMES, "path", NULL))
+            if (p = iniparser_getstring(obj->iniconfig, INISEC_HOMES, "path", NULL)) {
+                strlcat(tmp, "/", MAXPATHLEN);
                 strlcat(tmp, p, MAXPATHLEN);
+            }
         } else {
             /* Get path */
             if ((p = iniparser_getstring(obj->iniconfig, secname, "path", NULL)) == NULL)