]> git.cworth.org Git - tar/commitdiff
revert patch introduced in 2004 to work around a dpkg bug long since resolved
authorBdale Garbee <bdale@gag.com>
Tue, 28 Sep 2010 21:00:09 +0000 (06:00 +0900)
committerBdale Garbee <bdale@gag.com>
Tue, 28 Sep 2010 21:00:09 +0000 (06:00 +0900)
src/create.c

index 5a2e0b588226e5e8a3d80e49e75bd4bd9e66c59b..c69d3406a1c859b52afd2695b9136e1bd9885b9a 100644 (file)
@@ -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;