]> arthur.barton.de Git - netatalk.git/commitdiff
basedir regex must be defined in [Homes] section
authorHAT <hat@fa2.so-net.ne.jp>
Thu, 19 Apr 2012 16:19:30 +0000 (01:19 +0900)
committerHAT <hat@fa2.so-net.ne.jp>
Thu, 19 Apr 2012 16:19:30 +0000 (01:19 +0900)
libatalk/util/netatalk_conf.c

index a346184375adb213f1fbbd3641c22ecb59301dbb..cd2246ed54bf5156f08589f2921dfcbae7581941 100644 (file)
@@ -992,8 +992,10 @@ static int readvolfile(AFPObj *obj, const struct passwd *pwent)
                 continue;
 
             /* check if user home matches our "basedir regex" */
-            if ((basedir = iniparser_getstring(obj->iniconfig, INISEC_HOMES, "basedir regex", NULL)) == NULL)
+            if ((basedir = iniparser_getstring(obj->iniconfig, INISEC_HOMES, "basedir regex", NULL)) == NULL) {
+                LOG(log_error, logtype_afpd, "\"basedir regex =\" must be defined in [Homes] section");
                 continue;
+            }
             LOG(log_debug, logtype_afpd, "readvolfile: basedir regex: '%s'", basedir);
 
             if (regexerr != 0 && (regexerr = regcomp(&reg, basedir, REG_EXTENDED)) != 0) {