]> granicus.if.org Git - sysstat/commit
sar/sadf: Make sure we can read file headers structures from older
authorSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 1 Oct 2019 14:49:58 +0000 (16:49 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Tue, 1 Oct 2019 14:49:58 +0000 (16:49 +0200)
commit94026c04754dfea39859923bcb7a8c3c01efff18
treed752f443b0a345fbd7d73914e2f1ddd362f9028c
parent655cf067f765dc52bf4607f7ab8b1294bd8fda70
sar/sadf: Make sure we can read file headers structures from older
versions

Reading the file_header or file_activity structures from a daily data
file from an older version where fewer fields were present might be a
problem as we allocate buffers based on the size of the structure from
the file. This buffer would ithen be to small for the remap_struct()
function to remap the fields to current (larger) structures.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa_common.c