Bug reported in
  http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00014.html

* src/names.c (collect_and_sort_names): Fix iteration over namelist.
This commit is contained in:
Sergey Poznyakoff
2018-12-21 13:42:29 +02:00
parent 983a82a376
commit ea3aea06f1

View File

@@ -1857,7 +1857,7 @@ collect_and_sort_names (void)
if (listed_incremental_option)
{
for (name = namelist; name && name->name[0] == 0; name++)
for (name = namelist; name && name->name[0] == 0; name = name->next)
;
if (name)
append_incremental_renames (name->directory);