[BusyBox-cvs] busybox/archival/libunarchive get_header_tar.c, 1.18, 1.19
Erik Andersen
andersen at busybox.net
Wed Jul 16 06:29:54 UTC 2003
Update of /var/cvs/busybox/archival/libunarchive
In directory winder:/tmp/cvs-serv6756/archival/libunarchive
Modified Files:
get_header_tar.c
Log Message:
Fixup problem unconditionally converting all hard links to symlinks.
Index: get_header_tar.c
===================================================================
RCS file: /var/cvs/busybox/archival/libunarchive/get_header_tar.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- get_header_tar.c 12 Jun 2003 13:47:16 -0000 1.18
+++ get_header_tar.c 16 Jul 2003 06:29:51 -0000 1.19
@@ -120,10 +120,6 @@
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 @@
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;
More information about the busybox-cvs
mailing list