goutils/cmd/cruntar
Kyle Isom 3c2ec896f8 cmd/cruntar: avoid writing files outside archive 2023-05-04 17:20:22 -07:00
..
BUILD.bazel bazel: updating build files 2023-05-04 15:11:15 -07:00
README Add cruntar - untar for ChromeOS. 2017-11-15 17:37:54 -08:00
main.go cmd/cruntar: avoid writing files outside archive 2023-05-04 17:20:22 -07:00

README

ChromeOS untar

This is a tool that is intended to support untarring on SquashFS file
systems. In particular, every time it encounters a hard link, it
will just create a copy of the file.

Usage: cruntar [-jmvpz] archive [dest]

Flags:
        -a      Shortcut for -m -p: preserve owners and file mode.
        -j      The archive is compressed with bzip2.
        -m      Preserve file modes.
        -p      Preserve ownership.
        -v      Print the name of each file as it is being processed.
        -z      The archive is compressed with gzip.

I wrote this after running into problems with untarring the
gcc-arm-eabi-none toolchain. The shared storage in Termux under
ChromeOS doesn't support hard links, so I opted to just make a copy
rather than dealing with links and whatnot.