Changes based on PR

This commit is contained in:
Jiri Appl
2018-08-03 12:01:41 -07:00
parent 350b9857de
commit 5380df2ba5
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ func FileInfoFromHeader(hdr *tar.Header) (name string, size int64, fileInfo *win
if err != nil {
return "", 0, nil, err
}
fileInfo.FileAttributes = attr
fileInfo.FileAttributes = uint32(attr)
} else {
if hdr.Typeflag == tar.TypeDir {
fileInfo.FileAttributes |= syscall.FILE_ATTRIBUTE_DIRECTORY