guestfish -i and virt-inspector work on filenames containing spaces (RHBZ#507810).
authorRichard Jones <rjones@redhat.com>
Wed, 12 May 2010 14:58:00 +0000 (15:58 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 13 May 2010 15:22:05 +0000 (16:22 +0100)
commit1c6ed48bd3cd471dc6e4613ede9151631e19f55a
tree5362b4fbb95e91dfa6b1811df9b9f0105309071f
parent72324580801f2c0e2b702b430b90eb141618c7f4
guestfish -i and virt-inspector work on filenames containing spaces (RHBZ#507810).

This commit fixes a long-standing bug which prevented guestfish -i
and virt-inspector from working on disk images which had a space
in the filename (or other unsafe characters).  It works by ensuring
that the strings passed between guestfish -i and virt-inspector are
quoted correctly in both directions.

Note that this commit adds a dependency from virt-inspector to
the perl module String::ShellQuote.  We have previously used this
module in virt-make-fs.
fish/fish.c
inspector/virt-inspector