aboutsummaryrefslogtreecommitdiffstats
path: root/sos.spec
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2022-09-13 11:38:15 -0400
committerJake Hunsaker <jhunsake@redhat.com>2022-09-19 09:55:04 -0400
commit872ec715e7b292d8f17edceb84bf8b5ac97014a1 (patch)
tree043e90d9394d0cc809ee8dfc41dfc2411254f440 /sos.spec
parent11317c6a8077026891c4a3c178510bcaf98b8800 (diff)
downloadsos-872ec715e7b292d8f17edceb84bf8b5ac97014a1.tar.gz
[cleaner] Replace encoding errors when opening files
A scenario was found that if a file had encoding issues when `sos clean` went to open the file for obfuscation, we would stop processing the file but leave it in the archive, which had the potential to leave unobfuscated information in that file in the archive. Fix this, by using the `errors='replace'` parameter when opening archive files. This allows us to continue parsing the file normally, while replacing the problematic characters with `?`s. Closes: #3015 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'sos.spec')
0 files changed, 0 insertions, 0 deletions