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: 5d2ace3424516bd7cc8d4a57fcaddd00fa1c4b5d Component: engine