From 72b3c7874b119a2edd752bc5866e058a1979a1ba Mon Sep 17 00:00:00 2001 From: Quantum Heart Date: Mon, 24 Jul 2017 13:43:48 +0200 Subject: [PATCH] Avoid EOL conversion of received files to make integrity validation work. --- src/client-agent/receiver-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client-agent/receiver-win.c b/src/client-agent/receiver-win.c index d55c116f1..859bdf7f9 100644 --- a/src/client-agent/receiver-win.c +++ b/src/client-agent/receiver-win.c @@ -151,7 +151,7 @@ void *receiver_thread(__attribute__((unused)) void *none) SHAREDCFG_DIR, tmp_msg); - fp = fopen(file, "w"); + fp = fopen(file, "wb"); if (!fp) { merror(FOPEN_ERROR, ARGV0, file, errno, strerror(errno)); }