From a1326f4c5373f15930457e8a36a906e9844bbfb0 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Wed, 29 Sep 2010 06:00:09 +0900 Subject: [PATCH] revert patch introduced in 2004 to work around a dpkg bug long since resolved --- src/create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0