]> git.ipfire.org Git - thirdparty/grub.git/commit
Handle symlinks and long names on tar and cpio.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 30 Oct 2011 22:06:25 +0000 (23:06 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 30 Oct 2011 22:06:25 +0000 (23:06 +0100)
commit19ee298767b7780618ea04cb556cd6211fffe780
tree2f198f286a12277e1e01d199dddea1f7ef691578
parentc83a08d84ac9e35cfde2e9df2b660010073e9227
Handle symlinks and long names on tar and cpio.

* grub-core/fs/cpio.c (ATTR_TYPE): New definition.
(ATTR_FILE): Likewise.
(ATTR_DIR): Likewise.
(ATTR_LNK): Likewise.
(grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
(grub_cpio_find_file): Fill mode, handle linkname field as well as
L and K entries.
(grub_cpio_mount): Zero-fill data.
(handle_symlink): New function.
ChangeLog
grub-core/fs/cpio.c