1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/chrootarchive
Tonis Tiigi cec4e69813
chrootarchive: don't create parent dirs outside of chroot
If chroot is used with a special root directory then create
destination directory within chroot. This works automatically
already due to extractor creating parent paths and is only
used currently with cp where parent paths are actually required
and error will be shown to user before reaching this point.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 52d285184068998c22632bfb869f6294b5613a58)
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 80f1169eca)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-10-05 09:57:04 +02:00
..
archive.go chrootarchive: don't create parent dirs outside of chroot 2021-10-05 09:57:04 +02:00
archive_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
archive_unix.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
archive_unix_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
archive_windows.go
chroot_linux.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
chroot_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
diff.go
diff_unix.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
diff_windows.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
init_unix.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
init_windows.go