mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Quote command line arguments to virt-inspector.
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user