git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
411ae73
)
registry: add a function for fetching a tdb record for a given keystring
author
Michael Adam
<obnox@samba.org>
Tue, 29 Apr 2008 15:04:41 +0000
(17:04 +0200)
committer
Michael Adam
<obnox@samba.org>
Wed, 30 Apr 2008 10:42:32 +0000
(12:42 +0200)
regdb_fetch_key_internal()
Michael
(This used to be commit
97bed9a23608248f1a590c99fe40564d2fbfa3cc
)
source3/registry/reg_backend_db.c
patch
|
blob
|
history
diff --git
a/source3/registry/reg_backend_db.c
b/source3/registry/reg_backend_db.c
index 31ada0c85c987423d972d964af6e24176e6b2660..93bab672c82bcd2b437c4d7799cb8befcc6a2639 100644
(file)
--- a/
source3/registry/reg_backend_db.c
+++ b/
source3/registry/reg_backend_db.c
@@
-713,6
+713,18
@@
fail:
}
+static TDB_DATA regdb_fetch_key_internal(const char *key, TALLOC_CTX *mem_ctx)
+{
+ char *path = NULL;
+
+ path = normalize_reg_path(mem_ctx, key);
+ if (!path) {
+ return make_tdb_data(NULL, 0);
+ }
+
+ return dbwrap_fetch_bystring(regdb, mem_ctx, path);
+}
+
/***********************************************************************
Retrieve an array of strings containing subkeys. Memory should be
released by the caller.