Closed bergwolf closed 7 years ago
defer functions are called in stack order. Move state dir preparation first so that it is cleaned up last. Otherwise we might accidentally delete contents in container rootfs in case of failure.
This should fix https://github.com/hyperhq/runv/issues/550.
os.RemoveAll() does not follow symlinks!
defer functions are called in stack order. Move state dir preparation first so that it is cleaned up last. Otherwise we might accidentally delete contents in container rootfs in case of failure.
This should fix https://github.com/hyperhq/runv/issues/550.