diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/Config.in | 2 | ||||
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 4 | ||||
-rw-r--r-- | archival/tar.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/archival/Config.in b/archival/Config.in index 7810c354d..e3f6239f2 100644 --- a/archival/Config.in +++ b/archival/Config.in | |||
@@ -189,7 +189,7 @@ config CONFIG_FEATURE_TAR_COMPRESS | |||
189 | If you enable this option tar will be able to call uncompress, | 189 | If you enable this option tar will be able to call uncompress, |
190 | when extracting .tar.Z archives. | 190 | when extracting .tar.Z archives. |
191 | 191 | ||
192 | config CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY | 192 | config CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY |
193 | bool " Enable support for old tar header format" | 193 | bool " Enable support for old tar header format" |
194 | default N | 194 | default N |
195 | depends on CONFIG_TAR | 195 | depends on CONFIG_TAR |
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 682179a02..cd38f4560 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -80,7 +80,7 @@ char get_header_tar(archive_handle_t *archive_handle) | |||
80 | * 0's are for the old tar format | 80 | * 0's are for the old tar format |
81 | */ | 81 | */ |
82 | if (strncmp(tar.formated.magic, "ustar", 5) != 0) { | 82 | if (strncmp(tar.formated.magic, "ustar", 5) != 0) { |
83 | #ifdef CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY | 83 | #ifdef CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY |
84 | if (strncmp(tar.formated.magic, "\0\0\0\0\0", 5) != 0) | 84 | if (strncmp(tar.formated.magic, "\0\0\0\0\0", 5) != 0) |
85 | #endif | 85 | #endif |
86 | bb_error_msg_and_die("Invalid tar magic"); | 86 | bb_error_msg_and_die("Invalid tar magic"); |
@@ -144,7 +144,7 @@ char get_header_tar(archive_handle_t *archive_handle) | |||
144 | /* Reserved for high performance files, treat as normal file */ | 144 | /* Reserved for high performance files, treat as normal file */ |
145 | case 0: | 145 | case 0: |
146 | case '0': | 146 | case '0': |
147 | #ifdef CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY | 147 | #ifdef CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY |
148 | if (last_char_is(file_header->name, '/')) { | 148 | if (last_char_is(file_header->name, '/')) { |
149 | file_header->mode |= S_IFDIR; | 149 | file_header->mode |= S_IFDIR; |
150 | } else | 150 | } else |
diff --git a/archival/tar.c b/archival/tar.c index ab4d1f266..9d0a7c5e4 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -44,7 +44,7 @@ | |||
44 | 44 | ||
45 | /* Tar file constants */ | 45 | /* Tar file constants */ |
46 | # define TAR_MAGIC "ustar" /* ustar and a null */ | 46 | # define TAR_MAGIC "ustar" /* ustar and a null */ |
47 | # define TAR_VERSION " " /* Be compatable with GNU tar format */ | 47 | # define TAR_VERSION " " /* Be compatible with GNU tar format */ |
48 | 48 | ||
49 | #define TAR_BLOCK_SIZE 512 | 49 | #define TAR_BLOCK_SIZE 512 |
50 | #define TAR_MAGIC_LEN 6 | 50 | #define TAR_MAGIC_LEN 6 |