tar/Bugfix.patch
2019-09-30 11:18:06 -04:00

30 lines
825 B
Diff

From ea3aea06f1da077dbb4092672dc7e8768ae4f84e Mon Sep 17 00:00:00 2001
From: Sergey Poznyakoff <gray@gnu.org>
Date: Fri, 21 Dec 2018 13:42:29 +0200
Subject: [PATCH 37/58] Bugfix
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.
---
src/names.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/names.c b/src/names.c
index d3728d8..025b682 100644
--- a/src/names.c
+++ b/src/names.c
@@ -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);
--
2.19.1