aboutsummaryrefslogtreecommitdiff
path: root/bbot/worker
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-09 14:18:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-09 14:18:45 +0200
commit653cc04be4806a1eb4e7d1b72a4696fc20a22e47 (patch)
tree18958d73dac7f755b78628f96e2117565895daec /bbot/worker
parent99221a546b10545a7ed7af53044b088217e150eb (diff)
Use binary file mode for compressed content
Diffstat (limited to 'bbot/worker')
-rw-r--r--bbot/worker/worker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index eb7f50b..c1530f8 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -585,7 +585,7 @@ upload_manifest (tracer& trace,
try
{
tmp = auto_rmfile (path::temp_path (what + "-manifest.lz4"));
- ofdstream ofs (tmp.path);
+ ofdstream ofs (tmp.path, fdopen_mode::binary);
olz4stream ozs (ofs, 9, 5 /* 256KB */, nullopt /* content_size */);
manifest_serializer s (ozs, tmp.path.string ());
m.serialize (s);