diff options
author | rsc <devnull@localhost> | 2007-01-24 16:24:04 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-01-24 16:24:04 +0000 |
commit | 4c65127bbe5a3a1866ae005be9d5e98d79165a15 (patch) | |
tree | 90a47372c9e97dfb581312a16bc6fd6e58b081ad /src/cmd/9pfuse | |
parent | 47964cbc7b1409edc4908f199912e25d17b63b55 (diff) | |
download | plan9port-4c65127bbe5a3a1866ae005be9d5e98d79165a15.tar.gz plan9port-4c65127bbe5a3a1866ae005be9d5e98d79165a15.tar.bz2 plan9port-4c65127bbe5a3a1866ae005be9d5e98d79165a15.zip |
google moved the fusefs.kext path
Diffstat (limited to 'src/cmd/9pfuse')
-rw-r--r-- | src/cmd/9pfuse/fuse.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/cmd/9pfuse/fuse.c b/src/cmd/9pfuse/fuse.c index 6422c28c..513d38c9 100644 --- a/src/cmd/9pfuse/fuse.c +++ b/src/cmd/9pfuse/fuse.c @@ -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){ |