tgoogle moved the fusefs.kext path - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4c65127bbe5a3a1866ae005be9d5e98d79165a15
 (DIR) parent 47964cbc7b1409edc4908f199912e25d17b63b55
 (HTM) Author: rsc <devnull@localhost>
       Date:   Wed, 24 Jan 2007 16:24:04 +0000
       
       google moved the fusefs.kext path
       
       Diffstat:
         M src/cmd/9pfuse/fuse.c               |      13 ++++++++++---
       
       1 file changed, 10 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/9pfuse/fuse.c b/src/cmd/9pfuse/fuse.c
       t@@ -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){