X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=cat%2Fvirt-cat.c;h=06bd8b11d16df0b8f944086d84260bf4c9250803;hb=4ee190628bc05f0c8fad1f6d9c3e85619a91e8b8;hp=470c70cc58368863dca1230a30a0f98cf3b7fb44;hpb=ff99f399f09025eb4c880da8f13d666146dfac7f;p=libguestfs.git diff --git a/cat/virt-cat.c b/cat/virt-cat.c index 470c70c..06bd8b1 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -1,5 +1,5 @@ /* virt-cat - * Copyright (C) 2010 Red Hat Inc. + * Copyright (C) 2010-2011 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,10 +20,13 @@ #include #include +#include #include #include #include +#include #include +#include #include "progname.h" @@ -34,6 +37,7 @@ guestfs_h *g; int read_only = 1; +int live = 0; int verbose = 0; int keys_from_stdin = 0; int echo_keys = 0; @@ -213,6 +217,7 @@ main (int argc, char *argv[]) */ assert (read_only == 1); assert (inspector == 1); + assert (live == 0); /* User must specify at least one filename on the command line. */ if (optind >= argc || argc - optind < 1)