← Commit list

1b0075d24

Eric Andersen
Eric Andersen
2003-07-16
FAILED Duration: 70s

Subject

Fixup problem unconditionally converting all hard links to symlinks.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libunarchive/get_header_tar.c+1 -6
@@ -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;