summaryrefslogtreecommitdiffstats
path: root/regressions
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-18 17:46:50 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-18 18:03:41 +0100
commit06019bc82e107f7715ebc59e491610e06dad1e39 (patch)
treef75074a408c9968c0ba7b3055204df611b2deabf /regressions
parent635af5be04265f845186b40e9a9fe7b102ad6909 (diff)
downloadlibguestfs-06019bc82e107f7715ebc59e491610e06dad1e39.tar.gz
libguestfs-06019bc82e107f7715ebc59e491610e06dad1e39.tar.xz
libguestfs-06019bc82e107f7715ebc59e491610e06dad1e39.zip
Escape special/non-printing characters in debug output (RHBZ#731744).
The default event handler in libguestfs was simply writing all debug output directly to stderr. However if the output contains non-printable characters such as terminal control codes then these would also be sent directly. With newer SeaBIOS there is a lame attempt to implement a splash screen using terminal control codes, thus when libguestfs tries to display debugging output it would cause the screen to clear and debug output to be lost. This commit causes all non-printing characters to be escaped. (\n and \r characters from the appliance are treated somewhat specially). Furthermore, instead of using write(2), use buffered stderr calls.
Diffstat (limited to 'regressions')
0 files changed, 0 insertions, 0 deletions