From: Frank Lahm Date: Mon, 2 Jul 2012 14:25:28 +0000 (+0200) Subject: Fix CNID path for user homes X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=244bdfbbc36eccfa157056122e466ce2450b02a2 Fix CNID path for user homes --- diff --git a/NEWS b/NEWS index 4c6e3dd2..0a530208 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,8 @@ -Changes in 3.0 beta3 -==================== +Changes in 3.0 +============== * UPD: read only mode if cnid scheme is last * REM: global option "icon" +* FIX: CNID path for user homes Changes in 3.0 beta2 ==================== diff --git a/libatalk/util/netatalk_conf.c b/libatalk/util/netatalk_conf.c index 44791169..fdb18f27 100644 --- a/libatalk/util/netatalk_conf.c +++ b/libatalk/util/netatalk_conf.c @@ -1333,7 +1333,7 @@ struct vol *getvolbypath(AFPObj *obj, const char *path) subpath = prw; strlcat(tmpbuf, user, MAXPATHLEN); - strlcat(obj->username, user, MAXUSERLEN); + strlcpy(obj->username, user, MAXUSERLEN); strlcat(tmpbuf, "/", MAXPATHLEN); /* (6) */