diff options
author | Glenn L McGrath | 2003-08-14 02:55:15 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-08-14 02:55:15 +0000 |
commit | 3d5828fb6da7376eb220817376f22fac4da2815a (patch) | |
tree | 95b3ba1423159a87678f3caad26a99f8797faf45 /archival/libunarchive/get_header_tar.c | |
parent | 062913f66288b93aaefe052cb15b4115f4b1a839 (diff) | |
download | busybox-3d5828fb6da7376eb220817376f22fac4da2815a.zip busybox-3d5828fb6da7376eb220817376f22fac4da2815a.tar.gz |
Change hardlink handling for tar to work the same way as cpio
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 33cb75d..3bbe15d 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) case '0': file_header->mode |= S_IFREG; break; +#if 0 + /* hard links are detected as entries with 0 size, a link name, + * and not being a symlink, hence we have nothing to do here */ case '1': - bb_error_msg("WARNING: Converting hard link to symlink"); + break; +#endif case '2': file_header->mode |= S_IFLNK; break; @@ -173,6 +177,7 @@ extern char get_header_tar(archive_handle_t *archive_handle) # endif } #endif + if (archive_handle->filter(archive_handle) == EXIT_SUCCESS) { archive_handle->action_header(archive_handle->file_header); archive_handle->flags |= ARCHIVE_EXTRACT_QUIET; @@ -185,4 +190,3 @@ extern char get_header_tar(archive_handle_t *archive_handle) return(EXIT_SUCCESS); } - |