summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-07 16:51:41 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-07 17:04:36 +0000
commit0938509e0422363554023ab99381fd70a22a6e08 (patch)
treefa18468525355de03855f9c978e0618d717f36bc
parent37a242286896afe119163335143ffbdd6842127b (diff)
downloadlibguestfs-0938509e0422363554023ab99381fd70a22a6e08.tar.gz
libguestfs-0938509e0422363554023ab99381fd70a22a6e08.tar.xz
libguestfs-0938509e0422363554023ab99381fd70a22a6e08.zip
debian: Fix ntfs3g available API on Debian.
Really we should have a test for "is program on $PATH?" but this fix will do for now.
-rw-r--r--daemon/ntfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/ntfs.c b/daemon/ntfs.c
index 46b8333e..27aa2650 100644
--- a/daemon/ntfs.c
+++ b/daemon/ntfs.c
@@ -32,7 +32,11 @@ int
optgroup_ntfs3g_available (void)
{
int r = access ("/bin/ntfs-3g.probe", X_OK);
- return r == 0;
+ if (r == 0)
+ return 1;
+ /* On Debian: */
+ r = access ("/usr/bin/ntfs-3g.probe", X_OK);
+ return (r == 0);
}
int