With previous versions of busybox the xz applet would report an error and exit with error status if the input was invalid: echo ThisIsNotXZ | busybox xz -dc ; echo $? xz: corrupted data 1 But the latest version does not show any error message and exits with zero: echo ThisIsNotXZ | busybox xz -dc ; echo $? 0 I have not checked for sure, but this might be caused by commit 42f454b13b8d972e85acd7f046065ec69af4d206 "dpkg-deb: work around bogus error message when working with XZ compressed packages"