Skip to content

Commit

Permalink
Cast to uint32 just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
eveld committed Apr 16, 2024
1 parent c2168dc commit b0ebdbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func customHCLFuncDataFolderWithPermissions(name string, permissions int) (strin
strInt := fmt.Sprintf("0%d", permissions)
oInt, _ := strconv.ParseInt(strInt, 8, 32)

perms := os.FileMode(oInt)
perms := os.FileMode(uint32(oInt))
return utils.DataFolder(name, perms), nil
}

Expand Down

0 comments on commit b0ebdbe

Please sign in to comment.