https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209039

            Bug ID: 209039
           Summary: getextattr(8) -x garbles non-ASCII bytes
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

getextattr is used to print the value of an extended attribute on a file.  The
-x option prints the output in hex instead of ASCII.  It prints one byte at a
time, with spaces between bytes.  However, when printing bytes with the high
bit set, getextattr erroneously interprets the single byte as a signed 32-bit
number.

$ getextattr user umlauts foofoo     aeiou äëïöü
$ getextattr -x user umlauts foofoo     61 65 69 6f 75 20 ffffffc3 ffffffa4
ffffffc3 ffffffab ffffffc3 ffffffaf ffffffc3 ffffffb6 ffffffc3 ffffffbc

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to