diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-10 17:38:17 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-10 17:38:17 +0000 |
commit | 363978fa7fc055da380d31103c7de378a08b71fb (patch) | |
tree | 652da241a979f0b7bb277d86fc05b7b4a15aea32 /daemon/ntfs.c | |
parent | 4fb66110c2ffec1bc3f7fdf4a6d09b1d28a78db3 (diff) | |
download | libguestfs-363978fa7fc055da380d31103c7de378a08b71fb.tar.gz libguestfs-363978fa7fc055da380d31103c7de378a08b71fb.tar.xz libguestfs-363978fa7fc055da380d31103c7de378a08b71fb.zip |
daemon: Use prog_exists to check for features.
This updates commit 0938509e0422363554023ab99381fd70a22a6e08.
Diffstat (limited to 'daemon/ntfs.c')
-rw-r--r-- | daemon/ntfs.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/daemon/ntfs.c b/daemon/ntfs.c index 27aa2650..a25fc38a 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,19 +31,13 @@ int optgroup_ntfs3g_available (void) { - int r = access ("/bin/ntfs-3g.probe", X_OK); - if (r == 0) - return 1; - /* On Debian: */ - r = access ("/usr/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 |