mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
There are some changes here that make the file metadata better match the layer files: * Set the mode of the file after the chown, as otherwise the per-group/uid specific flags and e.g. sticky bit is lost * Use lchown instead of chown * Delay mtime updates to after all other changes so that later file creation doesn't change the mtime for the parent directory * Use Futimes in combination with O_PATH|O_NOFOLLOW to set mtime on symlinks Upstream-commit: 99c7d129f422b488f478bc7887f37003dacc83e6 Component: engine