mercurial/cffi/osutil.py
changeset 49601 8009a89bc18b
parent 48946 642e31cb55f0
child 51786 ecc3a893979d
--- a/mercurial/cffi/osutil.py	Tue Nov 08 14:31:10 2022 -0500
+++ b/mercurial/cffi/osutil.py	Tue Nov 08 18:05:19 2022 -0500
@@ -57,7 +57,7 @@
                 ofs = cur.name_info.attr_dataoffset
                 str_lgt = cur.name_info.attr_length
                 base_ofs = ffi.offsetof(b'val_attrs_t', b'name_info')
-                name = str(
+                name = bytes(
                     ffi.buffer(
                         ffi.cast(b"char*", cur) + base_ofs + ofs, str_lgt - 1
                     )