mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-20 09:12:48 +02:00
Don't write whiteout files to directories that were replaced with files or links (#2590)
If a non-empty directory gets replaced with something other than a directory (e.g. file or symlink), the files in that directory also get deleted. However, there should not be any whiteout files for them in the layer. If there were, the resulting tar file would not be extractable. Fixes #2308
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# Not prefixed Dockerfile_test to exclude it from TestRun()
|
||||
FROM busybox
|
||||
|
||||
RUN mkdir /a /b /c && echo a > /a/d
|
||||
RUN rm -r /a && echo "foo" > /a
|
||||
Reference in New Issue
Block a user