Fix: ctf: open metadata file using mode "rb"
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 1 Oct 2019 20:04:03 +0000 (16:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 3 Oct 2019 14:45:11 +0000 (10:45 -0400)
commit9aa69a722da49bd311e069dddc5c452e9e566531
tree51916782733a0bca3a820f6404065bad425760b4
parent501e2500aef53c7c7c3ce9138e4cbf5882dc86c7
Fix: ctf: open metadata file using mode "rb"

In the handling of the support info query, we open the metadata file
using the "r" mode.  On Windows, this is a problem when opening
packetized metadata files, which may contain bytes that Windows will
treat as end of lines and transorm.  Use "rb" instead.

This makes the test_trace_copy test pass on Windows.  It currently fails
with the "session-rotation" trace.

Change-Id: Iaa7a3b8def1c07335c5e7e094d82121df56de268
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2110
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
src/plugins/ctf/fs-src/query.c
This page took 0.024303 seconds and 4 git commands to generate.