Created attachment 135264 [details]
Steps to reproduce:
1) Open the attached ODT file in Writer.
2) Export as .epub
3) Use 'unzip -l test.epub' to list its file list.
Expected: output contains no warnings.
Actual: output is:
warning [test.epub]: 2546 extra bytes at beginning or within zipfile
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":
tdf#111481 package: seek to 0 before truncate()
It will be available in 6.0.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
I guess till this only affects the EPUB export, it makes little sense to backport this.