libsmbconf:registry: add "state directory" to the list of forbidden parameters
authorMichael Adam <obnox@samba.org>
Tue, 17 Sep 2013 17:10:48 +0000 (19:10 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 24 Sep 2013 05:44:29 +0000 (07:44 +0200)
At the time when the registry configuration was introduced,
the registry database file was placed in the "lock directory".
So the "lock directory" was added to the list of parameters
that may not be changed in the registry configuration
(because the next config reload would then load a different
 registry and drop all the original seetings).

Later, "state directory" and "cache directory" were introduced,
both defaulting to "lock directory". And the registry's location
was changed to "state directory".

It slipped my attention that the forbidden parameters for the
should have been adapted at the time.

So this patch adds "state directory" to the list.
It keeps the lock directory, to catch the case
where the state directory is not explicitly set, hence
defaulting to the "lock directory".

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/smbconf/smbconf_reg.c

index 84294ab663e30d83b5a1670c2ced73bad69a5e98..ac6b84d1f58873e7cde0fea01238ef734140bebf 100644 (file)
@@ -58,6 +58,7 @@ bool smbconf_reg_parameter_is_valid(const char *param_name)
 {
        /* hard code the list of forbidden names here for now */
        const char *forbidden_names[] = {
+               "state directory",
                "lock directory",
                "lock dir",
                "config backend",