HI all,

when using bind mounts and trying to extract a tar archive containing
symlinks to it the extraction fails with "Cannot utime: No such file or
directory". This only appears to happen on macOS (I'm using 10.14.5 and
Docker Desktop 2.0.0.3).

Here are the steps to reproduce this:

$ rm -rf /tmp/gnulib-bug-symlinks
$ mkdir /tmp/gnulib-bug-symlinks
$ touch /tmp/gnulib-bug-symlinks/1
$ ln -s 1 /tmp/gnulib-bug-symlinks/2
$ tar cf test.tar -C /tmp gnulib-bug-symlinks/2 gnulib-bug-symlinks/1
$ docker run -it --rm -v $(pwd):/mnt debian:latest tar xvf /mnt/test.tar -C
/mnt

The last step fails with:

tar: gnulib-bug-symlinks/2: Cannot utime: No such file or directory

The commit that caused this error to occur is
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=9381306085ec6d6d0c671afb5816dcfc85b04e97.
If I revert this locally, the error doesn't occur.

Cheers!
/max

Reply via email to