summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2003-07-16 06:29:51 +0000
committerEric Andersen2003-07-16 06:29:51 +0000
commit1b0075d243c54fb5647089b31805f7c9ba7cabfa (patch)
tree9b3ff803b9ba8dc42412b449c9c0f9ada81bc015
parentc9897243160cef43045e4e876176888777210c20 (diff)
downloadbusybox-1b0075d243c54fb5647089b31805f7c9ba7cabfa.zip
busybox-1b0075d243c54fb5647089b31805f7c9ba7cabfa.tar.gz
Fixup problem unconditionally converting all hard links to symlinks.
-rw-r--r--archival/libunarchive/get_header_tar.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index e3b1807..33cb75d 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)
file_header->device = (dev_t) ((strtol(tar.formated.devmajor, NULL, 8) << 8) +
strtol(tar.formated.devminor, NULL, 8));
- if (tar.formated.typeflag == '1') {
- bb_error_msg("WARNING: Converting hard link to symlink");
- file_header->mode |= S_IFLNK;
- }
#if defined CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY || defined CONFIG_FEATURE_TAR_GNU_EXTENSIONS
/* Fix mode, used by the old format */
switch (tar.formated.typeflag) {
@@ -133,8 +129,7 @@ extern char get_header_tar(archive_handle_t *archive_handle)
file_header->mode |= S_IFREG;
break;
case '1':
-// bb_error_msg("Internal hard link not supported");
- break;
+ bb_error_msg("WARNING: Converting hard link to symlink");
case '2':
file_header->mode |= S_IFLNK;
break;