Ensure that zfs diff prints unicode safely.
authorDarik Horn <dajhorn@vanadac.com>
Tue, 15 Jan 2013 01:27:39 +0000 (19:27 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Jan 2013 18:15:57 +0000 (10:15 -0800)
commit38145d612963d0a5b80017d5d1d49c1d4f9637c2
treefa653572e918b47115a0a28ccd597c83ea3e0bf9
parentb077fd4c4e16d372ef81035199e132687dbcf0e3
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
lib/libzfs/libzfs_diff.c