binsub.c: substitutions may be incomplete or incorrect
Consider the following:
z@powerhouse:/tmp/bs-armv7$ ls *.tar
rootfs-armv7l-adelie-linux-musleabihf.tar
z@powerhouse:/tmp/bs-armv7$ mkdir x
z@powerhouse:/tmp/bs-armv7$ tar -C x -xf *.tar
z@powerhouse:/tmp/bs-armv7$ find x -name sh
x/bin/sh
z@powerhouse:/tmp/bs-armv7$ ls -l x/bin/sh
lrwxrwxrwx 1 z z 4 Sep 18 17:56 x/bin/sh -> bash
z@powerhouse:/tmp/bs-armv7$ rm -fr x
z@powerhouse:/tmp/bs-armv7$ ./binsub rootfs-armv7l-adelie-linux-musleabihf.tar /tmp/bs-armv7/mcmtools-armv7l-adelie-linux-musleabihf/sys / >/dev/null
z@powerhouse:/tmp/bs-armv7$ mkdir x
z@powerhouse:/tmp/bs-armv7$ tar -C x -xf *.tar
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header
tar: Skipping to next header
tar: A lone zero block at 3716387
tar: Exiting with failure status due to previous errors
z@powerhouse:/tmp/bs-armv7$ find x -name sh
I think it's valid to patch .tar
files? If so, the tool may be doing something incorrectly.
This needs to be addressed before continuing.