diff --git a/archive/archive.go b/archive/archive.go index 1281683..e81f587 100644 --- a/archive/archive.go +++ b/archive/archive.go @@ -660,7 +660,7 @@ loop: parent := filepath.Dir(hdr.Name) parentPath := filepath.Join(dest, parent) if _, err := os.Lstat(parentPath); err != nil && os.IsNotExist(err) { - err = system.MkdirAll(parentPath, 0777) + err = idtools.MkdirAllNewAs(parentPath, 0777, remappedRootUID, remappedRootGID) if err != nil { return err }