From d313e8d271aacb56fe9ff6db901a987d739ca98b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 23 Jun 2020 04:03:53 -0500 Subject: William Djupström reported tar --exclude wasn't working. Fix and add test. (Also fix -v output going to stderr when it shouldn't.) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/tar.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/tar.test b/tests/tar.test index c2ca4895..d6c505ae 100644 --- a/tests/tar.test +++ b/tests/tar.test @@ -262,6 +262,11 @@ for i in {0..12}; do touch links/orig$i; ln links/{orig,link}$i; done testcmd 'links2' '-cf test.tar links' '' '' '' rm -rf links +install -m 000 -d folder/skip/oof && +testcmd 'exclude' '--exclude skip -cvf tar.tar folder && echo yes' \ + 'folder/\nyes\n' '' '' +rm -rf folder tar.tar + if false then -- cgit v1.2.3