bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* "Cannot utime: No such file or directory" in Docker bind mounted dirs on macOS
@ 2019-07-18  7:56 Max Jonas Werner
  2019-07-19  0:48 ` Paul Eggert
  2019-07-19  2:43 ` Bruno Haible
  0 siblings, 2 replies; 3+ messages in thread
From: Max Jonas Werner @ 2019-07-18  7:56 UTC (permalink / raw)
  To: bug-gnulib

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1241 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-19  2:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18  7:56 "Cannot utime: No such file or directory" in Docker bind mounted dirs on macOS Max Jonas Werner
2019-07-19  0:48 ` Paul Eggert
2019-07-19  2:43 ` Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).