1. Russ Cox
  2. plan9port

Commits

Russ Cox  committed 57c448c

mount: fix for osxfuse

R=rsc
http://codereview.appspot.com/6737052

  • Participants
  • Parent commits d722550
  • Branches default

Comments (0)

Files changed (1)

File bin/mount

View file
 		exec 9pfuse $1 $2
 	echo 'don''t know how to mount (no fuse)' >[1=2]
 case Darwin
-	if(sysctl fuse.version |9 grep -si 'fuse.version' ||
-	   sysctl macfuse.version.number |9 grep -si 'fuse.version' ||
+	if(sysctl fuse.version >[2]/dev/null |9 grep -si 'fuse.version' ||
+	   sysctl macfuse.version.number >[2]/dev/null |9 grep -si 'fuse.version' ||
+	   sysctl osxfuse.version.number >[2]/dev/null |9 grep -si 'fuse.version' ||
 	   test -d /System/Library/Extensions/fusefs.kext ||
+	   test -d /Library/Filesystems/osxfusefs.fs/Support/osxfusefs.kext ||
 	   test -d /Library/Filesystems/fusefs.fs/Support/fusefs.kext)
 		exec 9pfuse $1 $2
 	echo 'don''t know how to mount (no fuse)' >[1=2]