summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-18 06:14:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:30 -0500
commit20b6f0a11b7827f327de05b68370759129db1fe2 (patch)
treec10a2c48bf95854455cb46a6aa6331a65dfdfca9 /source4/lib/registry
parent80f75d4138029f9d3548c02513aa2484cd400574 (diff)
downloadsamba-20b6f0a11b7827f327de05b68370759129db1fe2.tar.gz
samba-20b6f0a11b7827f327de05b68370759129db1fe2.tar.bz2
samba-20b6f0a11b7827f327de05b68370759129db1fe2.zip
r9378: initialise the last_mod attribute in the ldb backend. Better to return
0 than an uninitialised value, but we should put proper last_modified time support into the ldb winreg backend in the future (This used to be commit 899bf07908d4a04cb3d1cd4034dca0c91e6a912b)
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/reg_backend_ldb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/registry/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb.c
index 8a5eac59c5..19d982c109 100644
--- a/source4/lib/registry/reg_backend_ldb.c
+++ b/source4/lib/registry/reg_backend_ldb.c
@@ -170,6 +170,8 @@ static WERROR ldb_get_subkey_by_id(TALLOC_CTX *mem_ctx, struct registry_key *k,
talloc_set_destructor(*subkey, reg_close_ldb_key);
(*subkey)->name = talloc_strdup(mem_ctx, el->values[0].data);
(*subkey)->backend_data = newkd = talloc_zero(*subkey, struct ldb_key_data);
+ (*subkey)->last_mod = 0; /* TODO: we need to add this to the
+ ldb backend properly */
newkd->dn = talloc_strdup(mem_ctx, kd->subkeys[idx]->dn);
return WERR_OK;