git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b91d470
)
Quote command line arguments to virt-inspector.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 24 Jun 2009 11:15:57 +0000
(12:15 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Wed, 24 Jun 2009 11:15:57 +0000
(12:15 +0100)
fish/fish.c
patch
|
blob
|
history
diff --git
a/fish/fish.c
b/fish/fish.c
index
b46fd7e
..
5e8a6e9
100644
(file)
--- 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++;
}