X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ftar.c;h=072a56693ec33f40ae9c221508ea77176abb18de;hb=f93cdf1ed3323b8d9451a7f4f6365ac30ab8ba81;hp=941f80bd8110ae0fca1715539a09b788c24bdd5d;hpb=55748a94bc840ac07d3c211119372cd16b31f1a0;p=libguestfs.git diff --git a/daemon/tar.c b/daemon/tar.c index 941f80b..072a566 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -25,9 +25,17 @@ #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) +{ + int r = access ("/usr/bin/xz", X_OK); + return r == 0; +} /* Redirect errors from the tar command to the error file, then * provide functions for reading it in. We overwrite the file each