Jan Mikkelsen
2008-Feb-27 13:36 UTC
Tar regression from 6.2 to 6.3 with --strip-components
Hi, I've just noticed a regression in tar from 6.2 to 6.3: Running this on 6.2 produces no output: #!/bin/sh mkdir -p a b output touch a/file1 b/file2 tar cf test.tar a b tar -x -C output --strip-components 1 -f test.tar On 6.3, it produces this output: : Invalid empty pathname : Invalid empty pathname tar: Error exit delayed from previous errors. And the tar extraction returns a failure. Is this known? Should I raise a PR? Regards, Jan Mikkelsen
Kris Kennaway
2008-Feb-27 14:04 UTC
Tar regression from 6.2 to 6.3 with --strip-components
Jan Mikkelsen wrote:> Hi, > > I've just noticed a regression in tar from 6.2 to 6.3: > > Running this on 6.2 produces no output: > > #!/bin/sh > mkdir -p a b output > touch a/file1 b/file2 > tar cf test.tar a b > tar -x -C output --strip-components 1 -f test.tar > > On 6.3, it produces this output: > > : Invalid empty pathname > : Invalid empty pathname > tar: Error exit delayed from previous errors. > > And the tar extraction returns a failure. > > Is this known? Should I raise a PR?Let's see what Tim has to say. Kris
Rink Springer
2008-Feb-27 14:06 UTC
Tar regression from 6.2 to 6.3 with --strip-components
Hi, On Thu, Feb 28, 2008 at 12:09:50AM +1100, Jan Mikkelsen wrote:> And the tar extraction returns a failure.I can confirm this does not work on 8-CURRENT either.> Is this known? Should I raise a PR?That seems a good idea to me. Thanks! -- Rink P.W. Springer - http://rink.nu "Anyway boys, this is America. Just because you get more votes doesn't mean you win." - Fox Mulder