#882338 xattr: Crash with acl

Package:
xattr
Source:
python-xattr
Description:
tool for manipulating filesystem extended attributes
Submitter:
Frederic MASSOT
Date:
2023-11-20 17:36:05 UTC
Severity:
normal
Tags:
#882338#5
Date:
2017-11-21 16:00:05 UTC
From:
To:
Dear Maintainer,

The xattr command crashes when used on a file with acl.

$ setfacl -m g:fredo:w a.txt

$ xattr a.txt
Traceback (most recent call last):
  File "/usr/bin/xattr", line 11, in <module>
    load_entry_point('xattr==0.9.1', 'console_scripts', 'xattr')()
  File "/usr/lib/python3/dist-packages/xattr/tool.py", line 188, in main
    attr_value = attr_value.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 8: invalid start byte


Regards.