summaryrefslogtreecommitdiff
path: root/source3/lib/util_reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_reg.c')
-rw-r--r--source3/lib/util_reg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/util_reg.c b/source3/lib/util_reg.c
index e75d72ac24..ed9f0a6817 100644
--- a/source3/lib/util_reg.c
+++ b/source3/lib/util_reg.c
@@ -110,3 +110,10 @@ WERROR reg_pull_multi_sz(TALLOC_CTX *mem_ctx, const void *buf, size_t len,
return WERR_OK;
}
+
+void normalize_dbkey(char *key)
+{
+ size_t len = strlen(key);
+ string_sub(key, "\\", "/", len+1);
+ strupper_m(key);
+}