Quote command line arguments to virt-inspector.

This commit is contained in:
Richard W.M. Jones
2009-06-24 12:15:57 +01:00
parent b91d47063c
commit b96fb7eb3a

View File

@@ -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++;
}