[Toybox] [PATCH] cpio: fix tests by removing --trailer.

enh enh at google.com
Thu Apr 16 08:56:33 PDT 2020


f2866cf58a07c9d681ecd6695ea969ac70e59a3d fixed the cpio --trailer check
as it claimed to, but doing so changed our behavior (since it used to be
always-on and is now off unless you supply --trailer).

This broke one of the cpio tests.

Since I can't find any other cpio that has a --trailer option (or its
inverse), this patch removes --trailer. This reverts our behavior to
our old behavior (always include the trailer). Judging by the fact that
the cpio tests pass with TEST_HOST=1, this seems to be the expected
behavior.
---
 toys/posix/cpio.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cpio-fix-tests-by-removing-trailer.patch
Type: text/x-patch
Size: 2028 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200416/86ef66b2/attachment-0002.bin>


More information about the Toybox mailing list