X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fcreate.c;h=6808fba926869e09f7d07726ddd292e640fe8964;hb=bc73e3d68d264291376bc8d28275b58f87a754a7;hp=4a1f17a6d88dea599e2f9bb3c6fa0107480e807b;hpb=5f152198cbf20505d5ebca7fd889b48b098d378d;p=chaz%2Ftar diff --git a/src/create.c b/src/create.c index 4a1f17a..6808fba 100644 --- a/src/create.c +++ b/src/create.c @@ -1224,15 +1224,6 @@ dump_file (char *p, int top_level, dev_t parent_device) block_ordinal = current_block_ordinal (); current_stat_info.stat.st_size = 0; /* force 0 size on dir */ - /* FIXME: If people could really read standard archives, this - should be: - - header - = start_header (standard_option ? p : namebuf, ¤t_stat_info); - - but since they'd interpret DIRTYPE blocks as regular - files, we'd better put the / on the name. */ - header = start_header (namebuf, ¤t_stat_info); if (!header) return; @@ -1492,8 +1483,8 @@ dump_file (char *p, int top_level, dev_t parent_device) sizeleft = current_stat_info.stat.st_size; - /* Don't bother opening empty, world readable files. Also do not open - files when archive is meant for /dev/null. */ + /* Don't bother opening empty, world readable files. Also do not + open files when archive is meant for /dev/null. */ if (dev_null_output || (sizeleft == 0 @@ -1533,8 +1524,7 @@ dump_file (char *p, int top_level, dev_t parent_device) isextended = header->oldgnu_header.isextended; else isextended = 0; - if (isextended) - abort(); + save_typeflag = header->header.typeflag; finish_header (header, block_ordinal); if (isextended)