From 8c41366a98ea96224adc2c108b940075431944fd Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 16 Jan 2008 17:31:44 +0100 Subject: Add "config backend" to the parameters forbidden in registry config. Make registry based configs more fool-proof. Michael (This used to be commit 2ea55c03b25eb5e98be3449e12004a7246319acd) --- source3/lib/util_reg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/lib/util_reg.c') diff --git a/source3/lib/util_reg.c b/source3/lib/util_reg.c index 956f0475a5..2d7d70c63f 100644 --- a/source3/lib/util_reg.c +++ b/source3/lib/util_reg.c @@ -130,6 +130,7 @@ bool registry_smbconf_valname_forbidden(const char *valname) "include", "lock directory", "lock dir", + "config backend", NULL }; const char **forbidden = NULL; -- cgit From 8d703d66d2b7b16ab8ab7fc5a4f15130787e10fe Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 14 Feb 2008 15:35:07 +0100 Subject: Use the proper boolean constants. Michael (This used to be commit 1c215325d1fb90f92fbe85011ab822892d5c994b) --- source3/lib/util_reg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/lib/util_reg.c') diff --git a/source3/lib/util_reg.c b/source3/lib/util_reg.c index 2d7d70c63f..2475dca040 100644 --- a/source3/lib/util_reg.c +++ b/source3/lib/util_reg.c @@ -95,7 +95,7 @@ WERROR reg_pull_multi_sz(TALLOC_CTX *mem_ctx, const void *buf, size_t len, thislen = strnlen_w(p, len) + 1; dstlen = convert_string_allocate(*values, CH_UTF16LE, CH_UNIX, p, thislen*2, (void *)&val, - True); + true); if (dstlen == (size_t)-1) { TALLOC_FREE(*values); return WERR_NOMEM; @@ -137,8 +137,8 @@ bool registry_smbconf_valname_forbidden(const char *valname) for (forbidden = forbidden_valnames; *forbidden != NULL; forbidden++) { if (strwicmp(valname, *forbidden) == 0) { - return True; + return true; } } - return False; + return false; } -- cgit