diff --git a/legacy.go b/legacy.go index 0b23b6c4d0..81ea32a496 100644 --- a/legacy.go +++ b/legacy.go @@ -283,7 +283,7 @@ func (r *legacyLayerReader) Next() (path string, size int64, fileInfo *winio.Fil if err != nil { return } - fileInfo.FileAttributes = uintptr(attr) + fileInfo.FileAttributes = attr beginning := int64(4) // Find the accurate file size.