From 36f86f47b1d3d3a0956b45b9dd28a84a364f9ba0 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Wed, 8 Nov 2023 18:21:46 -0500 Subject: [PATCH] trying to check what happen on window Signed-off-by: Juan Bustamante --- pkg/archive/archive_windows.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/archive/archive_windows.go b/pkg/archive/archive_windows.go index 2fec29232c..882bc20252 100644 --- a/pkg/archive/archive_windows.go +++ b/pkg/archive/archive_windows.go @@ -12,7 +12,11 @@ func hasHardlinks(fi os.FileInfo) bool { func getInodeFromStat(stat interface{}) (inode uint64, err error) { s, ok := stat.(*syscall.ByHandleFileInformation) if ok { - inode = s.VolumeSerialNumber + i64, err := cast.Int64(s.VolumeSerialNumber) + if err != nil { + return -1, err + } + inode = i64 } return }