google moved the fusefs.kext path

This commit is contained in:
rsc 2007-01-24 16:24:04 +00:00
parent 47964cbc7b
commit 4c65127bbe

View file

@ -797,11 +797,18 @@ mountfuse(char *mtpt)
int i, pid, fd, r; int i, pid, fd, r;
char buf[20]; char buf[20];
struct vfsconf vfs; struct vfsconf vfs;
char *f;
if(getvfsbyname("fusefs", &vfs) < 0){ if(getvfsbyname("fusefs", &vfs) < 0){
if((r=system("/System/Library/Extensions/fusefs.kext" if(access(f="/System/Library/Extensions/fusefs.kext"
"/Contents/Resources/load_fusefs")) < 0){ "/Contents/Resources/load_fusefs", 0) < 0 &&
werrstr("load fusefs: %r"); 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; return -1;
} }
if(r != 0){ if(r != 0){