libsmbconf:registry: clarify the appearance of "includes" in forbidden_names
authorMichael Adam <obnox@samba.org>
Sun, 22 Sep 2013 06:54:30 +0000 (08:54 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 05:44:28 +0000 (07:44 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/smbconf/smbconf_reg.c

index 9bdcbfd9037fa41671ebe1df978ad60cb2ca74d5..84294ab663e30d83b5a1670c2ced73bad69a5e98 100644 (file)
@@ -62,7 +62,13 @@ bool smbconf_reg_parameter_is_valid(const char *param_name)
                "lock dir",
                "config backend",
                "include",
-               "includes", /* this has a special meaning internally */
+               /*
+                * "includes" has a special meaning internally.
+                * It is currently not necessary to list it here since it is
+                * not a valid parameter. But for clarity and safety, we keep
+                * it for now.
+                */
+               INCLUDES_VALNAME,
                NULL
        };
        const char **forbidden = NULL;