From b96fb7eb3aa0ac67957ed15a7dd22bc7399cad44 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 24 Jun 2009 12:15:57 +0100 Subject: [PATCH] Quote command line arguments to virt-inspector. --- fish/fish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fish/fish.c b/fish/fish.c index b46fd7e..5e8a6e9 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -276,8 +276,9 @@ main (int argc, char *argv[]) fprintf (stderr, _("guestfish: virt-inspector command too long for fixed-size buffer\n")); exit (1); } - strcat (cmd, " "); + strcat (cmd, " '"); strcat (cmd, argv[optind]); + strcat (cmd, "'"); optind++; } -- 1.8.3.1