Fixup archive/tar_windows.go type

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2018-08-20 12:02:04 -07:00
parent 8fe92ea5f3
commit 2c4b7f6bd1

View File

@ -259,7 +259,7 @@ func fileInfoFromHeader(hdr *tar.Header) (name string, size int64, fileInfo *win
if err != nil { if err != nil {
return "", 0, nil, err return "", 0, nil, err
} }
fileInfo.FileAttributes = uintptr(attr) fileInfo.FileAttributes = uint32(attr)
} else { } else {
if hdr.Typeflag == tar.TypeDir { if hdr.Typeflag == tar.TypeDir {
fileInfo.FileAttributes |= syscall.FILE_ATTRIBUTE_DIRECTORY fileInfo.FileAttributes |= syscall.FILE_ATTRIBUTE_DIRECTORY