X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Ftar.c;h=ce3ca7862e74b3e01648b2683e9ce772004fd0da;hp=941f80bd8110ae0fca1715539a09b788c24bdd5d;hb=eeaab2ba84441a96977281a4472b1bccb9ec80a9;hpb=55748a94bc840ac07d3c211119372cd16b31f1a0 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