svn commit: samba r19838 - in branches/SAMBA_3_0/source/registry: .

vlendec at samba.org vlendec at samba.org
Wed Nov 22 15:41:29 GMT 2006


Author: vlendec
Date: 2006-11-22 15:41:29 +0000 (Wed, 22 Nov 2006)
New Revision: 19838

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19838

Log:
We have to delete the value record as well, otherwise the old values pop up
again if the key is re-created.

Volker

Modified:
   branches/SAMBA_3_0/source/registry/reg_db.c


Changeset:
Modified: branches/SAMBA_3_0/source/registry/reg_db.c
===================================================================
--- branches/SAMBA_3_0/source/registry/reg_db.c	2006-11-22 15:10:46 UTC (rev 19837)
+++ branches/SAMBA_3_0/source/registry/reg_db.c	2006-11-22 15:41:29 UTC (rev 19838)
@@ -397,6 +397,10 @@
 			pstr_sprintf( path, "%s%c%s", key, '/', oldkeyname );
 			normalize_reg_path( path );
 			tdb_delete_bystring( tdb_reg, path );
+			pstr_sprintf( path, "%s/%s/%s", VALUE_PREFIX, key,
+				      oldkeyname );
+			normalize_reg_path( path );
+			tdb_delete_bystring( tdb_reg, path );
 		}
 	}
 



More information about the samba-cvs mailing list