summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-07-27 17:21:48 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-03 15:31:37 +0200
commit1ed896407f8109348de7f138c1f00dddeb19df67 (patch)
tree0cdd1f687dc6f33eaa2ab2da2316aac848e741be /source4/lib
parenta23aa3f5f150d06c1943e5031a239d58ef7b068c (diff)
downloadsamba-1ed896407f8109348de7f138c1f00dddeb19df67.tar.gz
samba-1ed896407f8109348de7f138c1f00dddeb19df67.tar.bz2
samba-1ed896407f8109348de7f138c1f00dddeb19df67.zip
Make sure we write the value stored in value, not line (doublequoted).
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/patchfile_dotreg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/registry/patchfile_dotreg.c b/source4/lib/registry/patchfile_dotreg.c
index bed89d30bb..e0b04da908 100644
--- a/source4/lib/registry/patchfile_dotreg.c
+++ b/source4/lib/registry/patchfile_dotreg.c
@@ -271,14 +271,14 @@ _PUBLIC_ WERROR reg_dotreg_diff_load(int fd,
/* Delete value */
if (p[0] == '-') {
error = callbacks->del_value(callback_data,
- curkey, line);
+ curkey, value);
/* Ignore if key does not exist (WERR_BADFILE)
* Consistent with Windows behaviour */
if (!W_ERROR_IS_OK(error) &&
!W_ERROR_EQUAL(error, WERR_BADFILE)) {
DEBUG(0, ("Error deleting value %s in key %s\n",
- line, curkey));
+ value, curkey));
talloc_free(mem_ctx);
return error;
}
@@ -323,11 +323,11 @@ _PUBLIC_ WERROR reg_dotreg_diff_load(int fd,
return WERR_GENERAL_FAILURE;
}
- error = callbacks->set_value(callback_data, curkey, line,
+ error = callbacks->set_value(callback_data, curkey, value,
value_type, data);
if (!W_ERROR_IS_OK(error)) {
DEBUG(0, ("Error setting value for %s in %s\n",
- line, curkey));
+ value, curkey));
talloc_free(mem_ctx);
return error;
}