X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fextract.c;h=84e4ecdd733f84579b1d7524676894adb526653d;hb=2690759c06119771895831d4c3cf8d9a52ccc5de;hp=1731b3a8237e976af3c085dbbedac8d4a4438774;hpb=87fa28ed2abd92693a08e58523d7ab7f7c4563f0;p=chaz%2Ftar diff --git a/src/extract.c b/src/extract.c index 1731b3a..84e4ecd 100644 --- a/src/extract.c +++ b/src/extract.c @@ -601,6 +601,11 @@ extract_archive (void) /* Extract the archive entry according to its type. */ typeflag = current_header->header.typeflag; + /*KLUDGE */ + if (current_format == POSIX_FORMAT + && current_stat_info.archive_file_size != current_stat_info.stat.st_size) + typeflag = GNUTYPE_SPARSE; + switch (typeflag) { case GNUTYPE_SPARSE: