diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-11-27 00:01:43 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-11-27 00:01:43 +0000 |
commit | 39a56187a66f0acbffae4043ff089095c5d20466 (patch) | |
tree | f80ff1767e2b0fc8ce022bf45e36ffc776e9e8f9 /archival/libunarchive/get_header_tar.c | |
parent | 70f2096f44862a601befc13c786397375b09b78d (diff) | |
download | busybox-w32-39a56187a66f0acbffae4043ff089095c5d20466.tar.gz busybox-w32-39a56187a66f0acbffae4043ff089095c5d20466.tar.bz2 busybox-w32-39a56187a66f0acbffae4043ff089095c5d20466.zip |
Fix tar hard links
git-svn-id: svn://busybox.net/trunk/busybox@8005 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 603535a4c..561de1c03 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -151,10 +151,9 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
151 | file_header->mode |= S_IFIFO; | 151 | file_header->mode |= S_IFIFO; |
152 | break; | 152 | break; |
153 | # endif | 153 | # endif |
154 | /* hard links are detected as entries with 0 size, a link name, | 154 | /* hard links are detected as regular files with 0 size and a link name */ |
155 | * and not being a symlink, hence we have nothing to do here */ | ||
156 | case '1': | 155 | case '1': |
157 | file_header->mode |= ~S_IFLNK; | 156 | file_header->mode &= (S_IFREG | 07777); |
158 | break; | 157 | break; |
159 | # ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS | 158 | # ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS |
160 | case 'L': { | 159 | case 'L': { |