param: Fix str_list_v3 to accept ; again
authorVolker Lendecke <vl@samba.org>
Thu, 11 Feb 2016 12:11:46 +0000 (13:11 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 11 Feb 2016 18:19:55 +0000 (19:19 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Feb 11 19:19:55 CET 2016 on sn-devel-144

lib/util/util_strlist_v3.c

index e08edd4e8e6842427c2feb121c1e54783e79d180..c248575c5255cceec8b38977b1c21c64fa3b16b7 100644 (file)
@@ -67,7 +67,23 @@ char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
                TALLOC_FREE(list);
                return NULL;
        }
-       if (!sep) sep = LIST_SEP;
+
+       /*
+        * DON'T REPLACE THIS BY "LIST_SEP". The common version of
+        * LIST_SEP does not contain the ;, which used to be accepted
+        * by Samba 4.0 before param merges. It would be the far
+        * better solution to split the _v3 version again to source3/
+        * where it belongs, see the _v3 in its name.
+        *
+        * Unfortunately it is referenced in /lib/param/loadparm.c,
+        * which depends on the version that the AD-DC mandates,
+        * namely without the ; as part of the list separator. I am
+        * missing the waf fu to properly work around the wrong
+        * include paths here for this defect.
+        */
+       if (sep == NULL) {
+               sep = " \t,;\n\r";
+       }
 
        num = 0;
        str = s;