[master] Fix issue 63779: Handle xattr.read unicode errors by mimicking builtin xattr (#64039)

* Handle xattr.read unicode errors by mimicking builtin xattr.

Uses `bytes.decode` argument `errors="replace"`

* Add changelog

* Add newline

* Add test for xattr.read and non-UTF-8 bytes.

* Fix line break
This commit is contained in:
Shea Craig 2023-05-02 21:32:51 -04:00 committed by GitHub
parent afcd6a8114
commit 4fc4450bf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

1
changelog/63779.fixed.md Normal file
View file

@ -0,0 +1 @@
mac_xattr.list and mac_xattr.read will replace undecode-able bytes to avoid raising CommandExecutionError. [#63779](https://github.com/saltstack/salt/issues/63779)