X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Ftar.c;h=2ddde88a51e06a812b3e139b7dd667ae61338596;hb=066d14d138e9a92b406f6a0a4c018347349a1e5d;hp=072a56693ec33f40ae9c221508ea77176abb18de;hpb=9ff99418361cd1b56b00e4ffef52444021e60c72;p=libguestfs.git diff --git a/daemon/tar.c b/daemon/tar.c index 072a566..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 @@ -33,8 +33,7 @@ int optgroup_xz_available (void) { - int r = access ("/usr/bin/xz", X_OK); - return r == 0; + return prog_exists ("xz"); } /* Redirect errors from the tar command to the error file, then