[coreboot] lar directory handling patch
Myles Watson
mylesgw at gmail.com
Mon Feb 25 21:47:59 CET 2008
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 at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_lar_paths.diff
Type: text/x-patch
Size: 7835 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20080225/a0b94c8a/attachment.diff>
More information about the coreboot
mailing list