summaryrefslogtreecommitdiff
path: root/source3/lib/util_reg.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-06-15 15:51:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:22 -0500
commit43d59b7d420c3d3e67d98fabac2fe18403f75f4e (patch)
treeda815891462fc2b984e406e00a1c14694ab778ce /source3/lib/util_reg.c
parent9bb19474d77d5519acec35cd468dbb4d0347ed4b (diff)
downloadsamba-43d59b7d420c3d3e67d98fabac2fe18403f75f4e.tar.gz
samba-43d59b7d420c3d3e67d98fabac2fe18403f75f4e.tar.bz2
samba-43d59b7d420c3d3e67d98fabac2fe18403f75f4e.zip
r23507: Split one general function normalize_dbkey from reg_db.c into util_reg.c
(To be used in other place in subsequent commit.) Michael (This used to be commit 6fd71140499e30b8fd0f083301512db7b8c2f236)
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);
+}