bsdtar: reject appending to empty filtered archives
The filter check currently runs inside the entry loop. Empty filtered archives reach EOF before entering the loop, so bsdtar rewrites them as unfiltered archives and exits successfully. Check the filter immediately after opening the archive. This keeps the existing behavior for non-empty archives and prevents the original file from being modified.
D
datauwu committed
04d026211f4f1c5eb618ec9d0724b28210df7129
Parent: 510a1c5