Thanks to: Jesse Barker for reporting this. MFC after: 7 days
In particular, the previous code led to archives that had non-empty bodies following directory entries. Not a fatal problem, as bsdtar and GNU cpio are both happy to just skip this bogus data, but it still shouldn't be there. MFC after: 3 days
for the cpio formats. Thanks to: Rudolf Marek Approved by: re@