X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fscrub.c;h=2cef69d6809a5577d32d349d4380c1b64fef1e87;hb=8bc6e9d6a89672bbe1e7469774abe889354deb67;hp=08c6d47d3bb557f74820cd80eb32f4cabba095e1;hpb=e9c37113104c1cfb234535adc9b52ad3880a41ce;p=libguestfs.git diff --git a/daemon/scrub.c b/daemon/scrub.c index 08c6d47..2cef69d 100644 --- a/daemon/scrub.c +++ b/daemon/scrub.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -31,8 +31,7 @@ int optgroup_scrub_available (void) { - int r = access ("/usr/bin/scrub", X_OK); - return r == 0; + return prog_exists ("scrub"); } int