mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
google moved the fusefs.kext path
This commit is contained in:
parent
47964cbc7b
commit
4c65127bbe
1 changed files with 10 additions and 3 deletions
|
@ -797,11 +797,18 @@ mountfuse(char *mtpt)
|
|||
int i, pid, fd, r;
|
||||
char buf[20];
|
||||
struct vfsconf vfs;
|
||||
char *f;
|
||||
|
||||
if(getvfsbyname("fusefs", &vfs) < 0){
|
||||
if((r=system("/System/Library/Extensions/fusefs.kext"
|
||||
"/Contents/Resources/load_fusefs")) < 0){
|
||||
werrstr("load fusefs: %r");
|
||||
if(access(f="/System/Library/Extensions/fusefs.kext"
|
||||
"/Contents/Resources/load_fusefs", 0) < 0 &&
|
||||
access(f="/Library/Extensions/fusefs.kext"
|
||||
"/Contents/Resources/load_fusefs", 0) < 0){
|
||||
werrstr("cannot find load_fusefs");
|
||||
return -1;
|
||||
}
|
||||
if((r=system(f)) < 0){
|
||||
werrstr("%s: %r", f);
|
||||
return -1;
|
||||
}
|
||||
if(r != 0){
|
||||
|
|
Loading…
Reference in a new issue