r24704: Fix bug in the registry patch code.. all the more proves this code needs...
authorJelmer Vernooij <jelmer@samba.org>
Mon, 27 Aug 2007 13:53:18 +0000 (13:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:02:51 +0000 (15:02 -0500)
(This used to be commit aa98d219571c4a7af1e5a0f8483cc17a4b6b36e2)

source4/lib/registry/patchfile_dotreg.c
source4/setup/provision.reg

index f11ceb1be0e46416e261b9a7ba3161572f883795..1b4bffe8197769b8f6275edc01c863c59c425b47 100644 (file)
@@ -211,7 +211,7 @@ _PUBLIC_ WERROR reg_dotreg_diff_load(int fd, const struct reg_diff_callbacks *ca
                }
 
                /* 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));
index 867f3e204c7a149692fb9d2222856514b5083d77..0e657f3e6ad3a77fc0f9c87a980845b49a7964d0 100644 (file)
@@ -9,12 +9,20 @@ REGEDIT4
 [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