daemon: Always reflect command stderr to stderr when debugging.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 6 Nov 2009 17:27:02 +0000 (17:27 +0000)
committerRichard Jones <rjones@redhat.com>
Mon, 9 Nov 2009 11:05:19 +0000 (11:05 +0000)
commita25d175cf6e8283288fd6d209b37b09ffee0dcf3
treeec3b67a6859e08802ce47f8067cd1a089106d707
parentd714547ab361962ca6f76ec07736f1515595b2df
daemon: Always reflect command stderr to stderr when debugging.

When debugging (ie. LIBGUESTFS_DEBUG=1 & verbose flag set in daemon)
always reflect any stderr output from commands that we run to
stderr of the daemon, so it is visible.

Previously if stderror == NULL in command*, stderr output was
just eaten and discarded which meant useful error messages could
be lost.
daemon/guestfsd.c