Skip to content

Commit

Permalink
Fix armhf (crowdsecurity#2886)
Browse files Browse the repository at this point in the history
* armhf compile fix
  • Loading branch information
sabban authored Mar 12, 2024
1 parent 1a56a0e commit bd785ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/types/getfstype.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ func GetFSType(path string) (string, error) {
return "", err
}

fsType, ok := fsTypeMapping[buf.Type]
fsType, ok := fsTypeMapping[int64(buf.Type)] //nolint:unconvert

if !ok {
return "", fmt.Errorf("unknown fstype %d", buf.Type)
}
Expand Down

0 comments on commit bd785ed

Please sign in to comment.