From: Bdale Garbee Date: Tue, 28 Sep 2010 21:00:09 +0000 (+0900) Subject: revert patch introduced in 2004 to work around a dpkg bug long since resolved X-Git-Url: https://git.cworth.org/git?p=tar;a=commitdiff_plain;h=a1326f4c5373f15930457e8a36a906e9844bbfb0 revert patch introduced in 2004 to work around a dpkg bug long since resolved --- diff --git a/src/create.c b/src/create.c index 5a2e0b5..c69d340 100644 --- a/src/create.c +++ b/src/create.c @@ -747,7 +747,7 @@ write_header_name (struct tar_stat_info *st) return write_short_name (st); } else if (NAME_FIELD_SIZE - (archive_format == OLDGNU_FORMAT) - <= strlen (st->file_name)) + < strlen (st->file_name)) return write_long_name (st); else return write_short_name (st); @@ -1399,7 +1399,7 @@ dump_hard_link (struct tar_stat_info *st) block_ordinal = current_block_ordinal (); assign_string (&st->link_name, link_name); if (NAME_FIELD_SIZE - (archive_format == OLDGNU_FORMAT) - <= strlen (link_name)) + < strlen (link_name)) write_long_link (st); st->stat.st_size = 0;