diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-16 06:29:51 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-16 06:29:51 +0000 |
commit | 1b0075d243c54fb5647089b31805f7c9ba7cabfa (patch) | |
tree | 9b3ff803b9ba8dc42412b449c9c0f9ada81bc015 | |
parent | c9897243160cef43045e4e876176888777210c20 (diff) | |
download | busybox-w32-1b0075d243c54fb5647089b31805f7c9ba7cabfa.tar.gz busybox-w32-1b0075d243c54fb5647089b31805f7c9ba7cabfa.tar.bz2 busybox-w32-1b0075d243c54fb5647089b31805f7c9ba7cabfa.zip |
Fixup problem unconditionally converting all hard links to symlinks.
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index e3b180748..33cb75dfd 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -120,10 +120,6 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
120 | file_header->device = (dev_t) ((strtol(tar.formated.devmajor, NULL, 8) << 8) + | 120 | file_header->device = (dev_t) ((strtol(tar.formated.devmajor, NULL, 8) << 8) + |
121 | strtol(tar.formated.devminor, NULL, 8)); | 121 | strtol(tar.formated.devminor, NULL, 8)); |
122 | 122 | ||
123 | if (tar.formated.typeflag == '1') { | ||
124 | bb_error_msg("WARNING: Converting hard link to symlink"); | ||
125 | file_header->mode |= S_IFLNK; | ||
126 | } | ||
127 | #if defined CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY || defined CONFIG_FEATURE_TAR_GNU_EXTENSIONS | 123 | #if defined CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY || defined CONFIG_FEATURE_TAR_GNU_EXTENSIONS |
128 | /* Fix mode, used by the old format */ | 124 | /* Fix mode, used by the old format */ |
129 | switch (tar.formated.typeflag) { | 125 | switch (tar.formated.typeflag) { |
@@ -133,8 +129,7 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
133 | file_header->mode |= S_IFREG; | 129 | file_header->mode |= S_IFREG; |
134 | break; | 130 | break; |
135 | case '1': | 131 | case '1': |
136 | // bb_error_msg("Internal hard link not supported"); | 132 | bb_error_msg("WARNING: Converting hard link to symlink"); |
137 | break; | ||
138 | case '2': | 133 | case '2': |
139 | file_header->mode |= S_IFLNK; | 134 | file_header->mode |= S_IFLNK; |
140 | break; | 135 | break; |