Add missing check of a tar writing function

This commit is contained in:
Patrick Niklaus
2018-04-04 16:36:16 +00:00
committed by Patrick Niklaus
parent 14d2199cd8
commit 51fe0dd5a0
+2 -1
View File
@@ -279,7 +279,8 @@ class FileWriter
// update header to reflect increased tar size
auto old_size = header.size;
header.size += number_of_bytes;
mtar_write_header(&handle, &header);
ret = mtar_write_header(&handle, &header);
detail::checkMTarError(ret, path, name);
// now seek to the end of the old record
handle.remaining_data = number_of_bytes;