Skip to content

Commit 5380df2

Browse files
committed
Changes based on PR
1 parent 350b985 commit 5380df2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backuptar/tar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func FileInfoFromHeader(hdr *tar.Header) (name string, size int64, fileInfo *win
303303
if err != nil {
304304
return "", 0, nil, err
305305
}
306-
fileInfo.FileAttributes = attr
306+
fileInfo.FileAttributes = uint32(attr)
307307
} else {
308308
if hdr.Typeflag == tar.TypeDir {
309309
fileInfo.FileAttributes |= syscall.FILE_ATTRIBUTE_DIRECTORY

fileinfo.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const (
2020
// FileBasicInfo contains file access time and file attributes information.
2121
type FileBasicInfo struct {
2222
CreationTime, LastAccessTime, LastWriteTime, ChangeTime syscall.Filetime
23-
FileAttributes uint64 // includes padding
23+
FileAttributes uint32
24+
pad uint32 // padding
2425
}
2526

2627
// GetFileBasicInfo retrieves times and attributes for a file.

0 commit comments

Comments
 (0)