Author: jelmer
Date: 2007-08-27 13:53:18 +0000 (Mon, 27 Aug 2007)
New Revision: 24704

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

Log:
Fix bug in the registry patch code.. all the more proves this code needs tests.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/registry/patchfile_dotreg.c
   branches/SAMBA_4_0/source/setup/provision.reg


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:file-ids
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/lib/registry/patchfile_dotreg.c
===================================================================
--- branches/SAMBA_4_0/source/lib/registry/patchfile_dotreg.c   2007-08-27 
13:13:08 UTC (rev 24703)
+++ branches/SAMBA_4_0/source/lib/registry/patchfile_dotreg.c   2007-08-27 
13:53:18 UTC (rev 24704)
@@ -211,7 +211,7 @@
                }
 
                /* Delete value */
-               if (strcmp(p, "-")) {
+               if (strcmp(p, "-") == 0) {
                        error = callbacks->del_value(callback_data, curkey, 
line);
                        if (!W_ERROR_IS_OK(error)) {
                                DEBUG(0, ("Error deleting value %s in key 
%s\n", line, curkey));

Modified: branches/SAMBA_4_0/source/setup/provision.reg
===================================================================
--- branches/SAMBA_4_0/source/setup/provision.reg       2007-08-27 13:13:08 UTC 
(rev 24703)
+++ branches/SAMBA_4_0/source/setup/provision.reg       2007-08-27 13:53:18 UTC 
(rev 24704)
@@ -9,12 +9,20 @@
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control]
 
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions]
-ProductType="LanmanNT"
+ProductType=LanmanNT
 
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print]
 
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server]
 
+[HKEY_LOCAL_MACHINE\System]
+
+[HKEY_LOCAL_MACHINE\System\CurrentControlSet]
+
+[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services]
+
+[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon]
+
 [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters]
 RefusePasswordChange=REG_DWORD:0
 

Reply via email to