X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ftar.c;h=2ddde88a51e06a812b3e139b7dd667ae61338596;hb=f341624668d10c58e2899354cef1e11c4175992a;hp=941f80bd8110ae0fca1715539a09b788c24bdd5d;hpb=55748a94bc840ac07d3c211119372cd16b31f1a0;p=libguestfs.git diff --git a/daemon/tar.c b/daemon/tar.c index 941f80b..2ddde88 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009-2010 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 @@ -25,9 +25,16 @@ #include "read-file.h" -#include "../src/guestfs_protocol.h" +#include "guestfs_protocol.h" #include "daemon.h" #include "actions.h" +#include "optgroups.h" + +int +optgroup_xz_available (void) +{ + return prog_exists ("xz"); +} /* Redirect errors from the tar command to the error file, then * provide functions for reading it in. We overwrite the file each