#include <unistd.h>
#include <getopt.h>
#include <fcntl.h>
+#include <locale.h>
#include <assert.h>
#include "progname.h"
guestfs_h *g;
int read_only = 1;
+int live = 0;
int verbose = 0;
int keys_from_stdin = 0;
int echo_keys = 0;
};
struct drv *drvs = NULL;
struct drv *drv;
- char *p, *file = NULL;
const char *format = NULL;
int c;
int option_index;
- int next_prepared_drive = 1;
char mode = 0;
g = guestfs_create ();
*/
assert (read_only == 1);
assert (inspector == 1);
+ assert (live == 0);
/* User must specify at least one directory name on the command line. */
if (optind >= argc || argc - optind < 1)
}
else if (mode == 'l') {
char *out;
- size_t i;
if ((out = guestfs_ll (g, dir)) == NULL)
errors++;