]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/netatalk_conf.c
"valid users" options and friends only use ',' as field delimiter
[netatalk.git] / libatalk / util / netatalk_conf.c
index fd7ebfd124777e99af77c2748f4f59ca7814e319..067ed45436781e08d38b23bd24518d1b96c12f55 100644 (file)
@@ -402,7 +402,7 @@ static char *volxlate(const AFPObj *obj,
  * check access list
  *
  * this function wants something of the following form:
- * "@group,name,name2,@group2,name3" or "@group name name2 @group2 name3"
+ * "@group,name,name2,@group2,name3".
  * A NULL argument allows everybody to have access.
  * We return three things:
  *     -1: no list
@@ -418,7 +418,7 @@ static int accessvol(const AFPObj *obj, const char *args, const char *name)
         return -1;
 
     strlcpy(buf, args, sizeof(buf));
-    if ((p = strtok(buf, ", ")) == NULL) /* nothing, return okay */
+    if ((p = strtok(buf, ",")) == NULL) /* nothing, return okay */
         return -1;
 
     while (p) {