summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-27 13:53:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:51 -0500
commit349cc1e14b5d6c3225427f76c8703ab7537b6daa (patch)
tree1cdbfd1e5c9daf75f995e1be9157bff6e6cf7a9a /source4
parent2edf63b6d647eba131e213bd9dbc543100396930 (diff)
downloadsamba-349cc1e14b5d6c3225427f76c8703ab7537b6daa.tar.gz
samba-349cc1e14b5d6c3225427f76c8703ab7537b6daa.tar.bz2
samba-349cc1e14b5d6c3225427f76c8703ab7537b6daa.zip
r24704: Fix bug in the registry patch code.. all the more proves this code needs tests.
(This used to be commit aa98d219571c4a7af1e5a0f8483cc17a4b6b36e2)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/patchfile_dotreg.c2
-rw-r--r--source4/setup/provision.reg10
2 files changed, 10 insertions, 2 deletions
diff --git a/source4/lib/registry/patchfile_dotreg.c b/source4/lib/registry/patchfile_dotreg.c
index f11ceb1be0..1b4bffe819 100644
--- a/source4/lib/registry/patchfile_dotreg.c
+++ b/source4/lib/registry/patchfile_dotreg.c
@@ -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));
diff --git a/source4/setup/provision.reg b/source4/setup/provision.reg
index 867f3e204c..0e657f3e6a 100644
--- a/source4/setup/provision.reg
+++ b/source4/setup/provision.reg
@@ -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