This is the mail archive of the
cygwin
mailing list for the Cygwin project.
tar 1.29 regression, duplicating files with -T and --no-recursion
- From: Tony Kelman <tony at kelman dot net>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 7 Mar 2017 23:46:03 +0000
- Subject: tar 1.29 regression, duplicating files with -T and --no-recursion
- Authentication-results: sourceware.org; auth=none
- Authentication-results: cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=none action=none header.from=kelman.net;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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