On Fri, Jan 07, 2022 at 02:38:09PM +0100, David Disseldorp wrote: > do_header() is called for each cpio entry and fails if the first six > bytes don't match "newc" magic. The magic check includes a special case > error message if POSIX.1 ASCII (cpio -H odc) magic is detected. This > special case POSIX.1 check can be nested under the "newc" mismatch code > path to avoid calling memcmp() twice in a non-error case. > > Signed-off-by: David Disseldorp <ddiss@xxxxxxx> > Reviewed-by: Martin Wilck <mwilck@xxxxxxxx> > --- Acked-by: Christian Brauner <christian.brauner@xxxxxxxxxx>