git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37a2422
)
debian: Fix ntfs3g available API on Debian.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 7 Dec 2010 16:51:41 +0000
(16:51 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 7 Dec 2010 17:04:36 +0000
(17:04 +0000)
Really we should have a test for "is program on $PATH?" but this
fix will do for now.
daemon/ntfs.c
patch
|
blob
|
history
diff --git
a/daemon/ntfs.c
b/daemon/ntfs.c
index
46b8333
..
27aa265
100644
(file)
--- 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