1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

registry: add removal of secdesc of a key to regdb_store_keys().

Michael
This commit is contained in:
Michael Adam 2008-05-08 18:08:41 +02:00
parent 3e89217e7e
commit a01d8fe5e8

View File

@ -688,6 +688,23 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr)
dbwrap_delete_bystring(regdb, path);
TALLOC_FREE(path);
/* (b) Delete the secdesc for this key */
path = talloc_asprintf(ctx, "%s/%s/%s",
REG_SECDESC_PREFIX,
key,
oldkeyname );
if (!path) {
goto cancel;
}
path = normalize_reg_path(ctx, path);
if (!path) {
goto cancel;
}
/* Ignore errors here, we might have no values around */
dbwrap_delete_bystring(regdb, path);
TALLOC_FREE(path);
/* (c) Delete the list of subkeys of this key */
path = talloc_asprintf(ctx, "%s/%s", key, oldkeyname);