This patch fixes lar path handling. In particular, it adds new members to the file struct for pathname and compression, so that directories can be correctly recursed and files can be renamed when being added. This fixes a buildrom breakage when adding the payload as well.
file-by-file changes:
util/lar/lar.c: make error messages more verbose pass a pointer to the file structure instead of the name start with a NULL path before parsing the name
util/lar/lib.c: change handle_directory to use a path name and respect nocompress change add_files to use lar_process_name instead of its own local version use sensible defaults for new file members when listing or extracting free pathname if allocated
util/lar/lib.h: add new members to struct file change prototypes of add_files and lar_add_file
util/lar/stream.c: change lar_add_file to use pathname and compression from struct file
Myles
Signed-off-by: Myles Watson mylesgw@gmail.com