more macfuse path nonsense
This commit is contained in:
parent
d28cfee19e
commit
6654bd74cb
1 changed files with 7 additions and 0 deletions
|
|
@ -838,8 +838,15 @@ mountfuse(char *mtpt)
|
||||||
if(pid == 0){
|
if(pid == 0){
|
||||||
snprint(buf, sizeof buf, "%d", fd);
|
snprint(buf, sizeof buf, "%d", fd);
|
||||||
putenv("MOUNT_FUSEFS_CALL_BY_LIB", "");
|
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",
|
execl("/System/Library/Filesystems/fusefs.fs/mount_fusefs",
|
||||||
"mount_fusefs", buf, mtpt, nil);
|
"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");
|
fprint(2, "exec mount_fusefs: %r\n");
|
||||||
_exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue