public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* tar 1.29 regression, duplicating files with -T and --no-recursion
@ 2017-03-07 23:46 Tony Kelman
  2017-03-08  3:20 ` Tony Kelman
  0 siblings, 1 reply; 2+ messages in thread
From: Tony Kelman @ 2017-03-07 23:46 UTC (permalink / raw)
  To: cygwin

Test case:


Tony@LAPTOP-O230JCFF ~
$ tar --version
tar (GNU tar) 1.29
Packaged by Cygwin (1.29-1)
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

Tony@LAPTOP-O230JCFF ~
$ mkdir tartest

Tony@LAPTOP-O230JCFF ~
$ echo 'tartest' > tartest/filelist.txt

Tony@LAPTOP-O230JCFF ~
$ echo 'tartest/filelist.txt' >> tartest/filelist.txt

Tony@LAPTOP-O230JCFF ~
$ tar -czf test.tar.gz -T tartest/filelist.txt --no-recursion

Tony@LAPTOP-O230JCFF ~
$ tar -tf test.tar.gz
tartest/
tartest/filelist.txt
tartest/filelist.txt

Tony@LAPTOP-O230JCFF ~
$ ls -al test.tar.gz
-rw-r--r-- 1 Tony None 186 Mar  7 15:39 test.tar.gz



If I downgrade to tar 1.28, I instead get

Tony@LAPTOP-O230JCFF ~
$ tar -tf test.tar.gz
tartest/
tartest/filelist.txt

Tony@LAPTOP-O230JCFF ~
$ ls -al test.tar.gz
-rw-r--r-- 1 Tony None 177 Mar  7 15:38 test.tar.gz



... though I just checked in a docker container of Debian unstable which
has tar 1.29 and I see the same issue, so this isn't cygwin-specific
and maybe I should report it upstream.

-Tony

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tar 1.29 regression, duplicating files with -T and --no-recursion
  2017-03-07 23:46 tar 1.29 regression, duplicating files with -T and --no-recursion Tony Kelman
@ 2017-03-08  3:20 ` Tony Kelman
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Kelman @ 2017-03-08  3:20 UTC (permalink / raw)
  To: cygwin

> $ tar -czf test.tar.gz -T tartest/filelist.txt --no-recursion

Looks like this was an intentional change: http://lists.gnu.org/archive/html/bug-tar/2016-05/msg00008.html
--no-recursion is apparently positional, so the fact that this worked before
http://git.savannah.gnu.org/cgit/tar.git/commit/?id=163e96a0e619a900eab6de827c7c5749ecc9d3f2
may have been accidental. As of http://git.savannah.gnu.org/cgit/tar.git/commit/?id=9a33077a7b7ad7d32815a21dee54eba63b38a81c
(the very first commit after 1.29), this invocation now gives an error.
Guess no action is needed.

-Tony

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-08  3:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 23:46 tar 1.29 regression, duplicating files with -T and --no-recursion Tony Kelman
2017-03-08  3:20 ` Tony Kelman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).