HomeFreeBSD

Ensure that zfs diff prints unicode safely.

Description

Ensure that zfs diff prints unicode safely.

In the stream_bytes() library function used by zfs diff, explicitly
cast each byte in the input string to an unsigned character so that the
Linux fprintf() correctly escapes to octal and does not mangle the output.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1172

Details

Provenance
Darik Horn <dajhorn@vanadac.com>Authored on Jan 15 2013, 1:27 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 16 2013, 6:15 PM
Parents
rGb077fd4c4e16: Illumos #3189 kernel panic in test hotspare_onoffline_004_neg
Branches
Unknown
Tags
Unknown