diff options
author | rsc <devnull@localhost> | 2007-06-20 00:10:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-06-20 00:10:03 +0000 |
commit | 6654bd74cbcac31835b75cc473132c9a844073e4 (patch) | |
tree | 8ca4085a84d2b4d876ea32deee252b6ded6c4647 /src/cmd/9pfuse | |
parent | d28cfee19e748c6a1fffa1ef2eb37ec3ea0fadd0 (diff) | |
download | plan9port-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.c | 7 |
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); } |