From 2890a11c5a2601d9ce00d6feedea8b01cecf67b4 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 8 Nov 2016 18:32:00 +0100 Subject: [PATCH] delta.c: fix xattr test after patching At the moment, swupd_create_pack fails when some files have xattrs and get patched because the xattrs of the test file do not match the original, unpatched file. That's because xattrs_copy() was applied to the wrong target file. Fixes: swupd-server/#35 Signed-off-by: Patrick Ohly --- src/delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/delta.c b/src/delta.c index e329e4f..ad40820 100644 --- a/src/delta.c +++ b/src/delta.c @@ -97,7 +97,7 @@ void __create_delta(struct file *file, int from_version, char *from_hash) ret = 0; goto out; } - xattrs_copy(original, newfile); + xattrs_copy(original, testnewfile); /* does xattrs have been correctly copied?*/ if (xattrs_compare(original, testnewfile) != 0) {