summaryrefslogtreecommitdiff
path: root/source3/registry/reg_util.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-06-27 03:40:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:03 -0500
commitab0033d40a369a7fc16496cb9773f3436cb268ae (patch)
tree2d2d3ed68a84d4a81edac7049517c9a963cf90cd /source3/registry/reg_util.c
parentbd509a81cb6c295988a1626adfe394c9778c005e (diff)
downloadsamba-ab0033d40a369a7fc16496cb9773f3436cb268ae.tar.gz
samba-ab0033d40a369a7fc16496cb9773f3436cb268ae.tar.bz2
samba-ab0033d40a369a7fc16496cb9773f3436cb268ae.zip
r7938: * move the hardcoded registry value names from _reg_query_value()
to a thin layer in fetch_reg_values(). Not entirely efficient seeing as the the dynamic value paths are stored in an unsorted array but it is one strequal() per path. If this was really big it should be worked into the reghook_cache(). (This used to be commit 63b81ad3cb484090a181fbd13e04922a5c17e7d9)
Diffstat (limited to 'source3/registry/reg_util.c')
-rw-r--r--source3/registry/reg_util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/registry/reg_util.c b/source3/registry/reg_util.c
index 9120ce0e0a..165292cf2f 100644
--- a/source3/registry/reg_util.c
+++ b/source3/registry/reg_util.c
@@ -85,4 +85,15 @@ BOOL reg_split_key( char *path, char **base, char **key )
}
+/**********************************************************************
+ The full path to the registry key is used as database after the
+ \'s are converted to /'s. Key string is also normalized to UPPER
+ case.
+**********************************************************************/
+
+void normalize_reg_path( pstring keyname )
+{
+ pstring_sub( keyname, "\\", "/" );
+ strupper_m( keyname );
+}