Sandboxed version of the libarchive minitar example using Sandboxed API.
mkdir -p build && cd build cmake .. -G Ninja cmake --build .
The example binary file can be found at build/examples/sapi_minitar and the unit tests at build/test/sapi_minitar_test.
The original libarchive code required patching since one of the custom types produced errors with libclang Python byndings. The patches are applied automatically during the build step and they do not modify the functionality of the library. The repository is also fetched automatically.
In this project, the minitar example is sandboxed. The code is found in the examples directory and is structured as follows:
On top of that, unit tests can be found in the test/minitar_test.cc file.
The unit tests can be executed with ./build/test/sapi_minitar_test
.
The sapi_minitar command line tool can be used in the same way as the original example. It is also similar to the tar command, only with fewer options:
./build/examples/sapi_minitar -[options] [-f file] [files]
The available options are:
If no compression method is chosen (in the case of archive creation) the files will only be stored.