+++ This bug was initially created as a clone of Bug #908255 +++ Description of problem: [root@hp-z220-01 images]# virt-cat RHEL-Server-6.0-32-hvm.raw /etc libguestfs: error: file receive cancelled by daemon libguestfs: error: /dev/stdout: error in chunked encoding Note it's wrong to use virt-cat with a directory name, but the problem is that the real error message is lost. Simple reproducer from within the libguestfs source tree: $ ./run ./cat/virt-cat -a ./tests/guests/fedora.img /etc libguestfs: error: file receive cancelled by daemon libguestfs: error: /dev/stdout: error in chunked encoding
The following upstream fix: https://github.com/libguestfs/libguestfs/commit/f9bafde5e7f1302ce7c5ea304e51a8d90a323b58 adds an extra check that the download file is not a directory, and gives the following error: $ ./run ./cat/virt-cat -a ./tests/guests/fedora.img /etc libguestfs: error: download: /etc: is a directory