more macfuse path nonsense

This commit is contained in:
rsc 2007-06-20 00:10:03 +00:00
parent d28cfee19e
commit 6654bd74cb

View file

@ -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);
}