pkg/archive: ignore mtime changes on directories
on overlay fs, the mtime of directories changes in a container where new files are added in an upper layer (e.g. '/etc'). This flags the directory as a change where there was none. Closes #9874 Signed-off-by: Vincent Batts <vbatts@redhat.com>
This commit is contained in:
parent
57ceb4a402
commit
233218e437
2 changed files with 2 additions and 3 deletions
|
@ -218,7 +218,6 @@ func TestChangesDirsMutated(t *testing.T) {
|
|||
expectedChanges := []Change{
|
||||
{"/dir1", ChangeDelete},
|
||||
{"/dir2", ChangeModify},
|
||||
{"/dir3", ChangeModify},
|
||||
{"/dirnew", ChangeAdd},
|
||||
{"/file1", ChangeDelete},
|
||||
{"/file2", ChangeModify},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue