* feat(security): adds the umask option
closes https://github.com/goreleaser/nfpm/security/advisories/GHSA-w7jw-q4fg-qc4c
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: correct bitwise op
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
When globbing a file that has a FileInfo set, we would reuse the pointer
to the original file's FileInfo even if the matched files' sizes are
different, causing deb to error when writing the data file due to
mismatching sizes.
Copy the FileInfo and recalculate its size when globbing. Add a test
case to check this scenario.
Fixes #316.