summaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorPaul Fox2007-11-17 19:11:05 +0000
committerPaul Fox2007-11-17 19:11:05 +0000
commit16aec39ebeb2246b0a0d335d5f02f6e1ebca67d1 (patch)
tree37901984021d0f4048ae31f419ae3c366335c264 /archival/libunarchive
parent8512862163fd7249a5e6e187eca21232d4eeadcc (diff)
downloadbusybox-16aec39ebeb2246b0a0d335d5f02f6e1ebca67d1.zip
busybox-16aec39ebeb2246b0a0d335d5f02f6e1ebca67d1.tar.gz
add comment clarifying busybox's use of non-standard tar header
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/get_header_tar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index bbf088c..274bd46 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -61,6 +61,9 @@ char get_header_tar(archive_handle_t *archive_handle)
char linkname[100]; /* 157-256 */
/* POSIX: "ustar" NUL "00" */
/* GNU tar: "ustar " NUL */
+ /* Normally it's defined as magic[6] followed by
+ * version[2], but we put them together to save code.
+ */
char magic[8]; /* 257-264 */
char uname[32]; /* 265-296 */
char gname[32]; /* 297-328 */