aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-06-20 00:10:03 +0000
committerrsc <devnull@localhost>2007-06-20 00:10:03 +0000
commit6654bd74cbcac31835b75cc473132c9a844073e4 (patch)
tree8ca4085a84d2b4d876ea32deee252b6ded6c4647 /src/cmd/9pfuse
parentd28cfee19e748c6a1fffa1ef2eb37ec3ea0fadd0 (diff)
downloadplan9port-6654bd74cbcac31835b75cc473132c9a844073e4.tar.gz
plan9port-6654bd74cbcac31835b75cc473132c9a844073e4.tar.bz2
plan9port-6654bd74cbcac31835b75cc473132c9a844073e4.zip
more macfuse path nonsense
Diffstat (limited to 'src/cmd/9pfuse')
-rw-r--r--src/cmd/9pfuse/fuse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/9pfuse/fuse.c b/src/cmd/9pfuse/fuse.c
index 513d38c9..59424707 100644
--- a/src/cmd/9pfuse/fuse.c
+++ b/src/cmd/9pfuse/fuse.c
@@ -838,8 +838,15 @@ mountfuse(char *mtpt)
if(pid == 0){
snprint(buf, sizeof buf, "%d", fd);
putenv("MOUNT_FUSEFS_CALL_BY_LIB", "");
+ /*
+ * Different versions of MacFUSE put the
+ * mount_fusefs binary in different places.
+ * Try both.
+ */
execl("/System/Library/Filesystems/fusefs.fs/mount_fusefs",
"mount_fusefs", buf, mtpt, nil);
+ execl("/System/Library/Filesystems/fusefs.fs/Support/mount_fusefs",
+ "mount_fusefs", buf, mtpt, nil);
fprint(2, "exec mount_fusefs: %r\n");
_exit(1);
}