[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Tar hangs (blocks?) on existing file when extracting with
From: |
Ralph Corderoy |
Subject: |
Re: [Bug-tar] Tar hangs (blocks?) on existing file when extracting with `--skip-old-files` and `--xattrs`. |
Date: |
Fri, 07 Oct 2016 11:51:07 +0100 |
Hi Dawid,
> To my surprise it worked the first time, but on subsequent attempts it
> just hangs. After some investigation, it turned out that if one uses
> `--xattrs --skip-old-files` together, and `tar x ...` encouter
> existing file, it just hangs.
...
> I've tested with tar 1.27.1 on Ubuntu 14.04.1
Could do with a test case that fails. This works with tar 1.29-1 on
Arch Linux.
$ (cd src && tar --xattrs -cf - .) |
> (cd dest && tar --xattrs -xvf -)
./
./foo
$
$ touch src/bar
$ (cd src && tar --xattrs -cf - .) |
> (cd dest && tar --xattrs --skip-old-files -xvf -)
./
tar: .: skipping existing file
./foo
tar: ./foo: skipping existing file
./bar
$
$ (cd src && tar --xattrs -cf - .) |
> (cd dest && tar --xattrs --skip-old-files -xvf -)
./
tar: .: skipping existing file
./foo
tar: ./foo: skipping existing file
./bar
tar: ./bar: skipping existing file
$
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy