X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fntfs.c;h=a25fc38a016f439b401b4fadc98bcc2872993ac0;hb=36b236fc97880c04e2ceeac502ff07a5e9993e28;hp=46b8333e064b57c3c46e545be214e1208c75c18a;hpb=7cb6fac3074c52ac3c3e9ead5d99e4a2887cf7b1;p=libguestfs.git diff --git a/daemon/ntfs.c b/daemon/ntfs.c index 46b8333..a25fc38 100644 --- a/daemon/ntfs.c +++ b/daemon/ntfs.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 @@ -31,15 +31,13 @@ int optgroup_ntfs3g_available (void) { - int r = access ("/bin/ntfs-3g.probe", X_OK); - return r == 0; + return prog_exists ("ntfs-3g.probe"); } int optgroup_ntfsprogs_available (void) { - int r = access ("/usr/sbin/ntfsresize", X_OK); - return r == 0; + return prog_exists ("ntfsresize"); } int