diff options
Diffstat (limited to 'archival/libunarchive/get_header_tar.c')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 33cb75dfd..3bbe15d36 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -128,8 +128,12 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
128 | case '0': | 128 | case '0': |
129 | file_header->mode |= S_IFREG; | 129 | file_header->mode |= S_IFREG; |
130 | break; | 130 | break; |
131 | #if 0 | ||
132 | /* hard links are detected as entries with 0 size, a link name, | ||
133 | * and not being a symlink, hence we have nothing to do here */ | ||
131 | case '1': | 134 | case '1': |
132 | bb_error_msg("WARNING: Converting hard link to symlink"); | 135 | break; |
136 | #endif | ||
133 | case '2': | 137 | case '2': |
134 | file_header->mode |= S_IFLNK; | 138 | file_header->mode |= S_IFLNK; |
135 | break; | 139 | break; |
@@ -173,6 +177,7 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
173 | # endif | 177 | # endif |
174 | } | 178 | } |
175 | #endif | 179 | #endif |
180 | |||
176 | if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) { | 181 | if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) { |
177 | archive_handle->action_header(archive_handle->file_header); | 182 | archive_handle->action_header(archive_handle->file_header); |
178 | archive_handle->flags |= ARCHIVE_EXTRACT_QUIET; | 183 | archive_handle->flags |= ARCHIVE_EXTRACT_QUIET; |
@@ -185,4 +190,3 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
185 | 190 | ||
186 | return(EXIT_SUCCESS); | 191 | return(EXIT_SUCCESS); |
187 | } | 192 | } |
188 | |||