]> git.ipfire.org Git - thirdparty/tar.git/commit
Fix semantics of -K used together with explicit member names.
authorSergey Poznyakoff <gray@gnu.org>
Fri, 21 Dec 2018 11:24:29 +0000 (13:24 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Fri, 21 Dec 2018 11:54:11 +0000 (13:54 +0200)
commit983a82a3767da04cb3ca15eefe2e4b21154c335f
treee105be1624b3a58bcfd2e6e3f575caf507d3f92a
parent916fe62ae9b91a5d71cfa752f7cad89a558d7672
Fix semantics of -K used together with explicit member names.

This also fixes the bug reported in
  http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00012.html

* src/common.h (starting_file_option): Describe the variable.
* src/names.c (add_starting_file): New function.
(name_match): Ignore everything before the member indicated by the
--starting-file option
* src/tar.c: Use add_starting_file to handle the -K option.
NEWS
src/common.h
src/names.c
src/tar.c