X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ftar.c;h=ce3ca7862e74b3e01648b2683e9ce772004fd0da;hb=53ca11ee44f71ed056f72df9769ca93b9a35e1a7;hp=941f80bd8110ae0fca1715539a09b788c24bdd5d;hpb=30c091f49dafab4ca9c8b6640d19fc0450b15971;p=libguestfs.git diff --git a/daemon/tar.c b/daemon/tar.c index 941f80b..ce3ca78 100644 --- a/daemon/tar.c +++ b/daemon/tar.c @@ -28,6 +28,14 @@ #include "../src/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