From d24314ca077ff042fecc14a8b3e51b06c8915c66 Mon Sep 17 00:00:00 2001 From: Federico Benavento Date: Thu, 15 Oct 2015 04:57:09 -0300 Subject: [PATCH] Fix El Capitan install and more --- Makefile | 2 +- README.md | 26 ++++--- inst/DS_Store | Bin 0 -> 6148 bytes inst/FSInfo.plist | 4 +- inst/InstallationCheck.strings | 1 - inst/KEInfo.plist | 2 +- inst/License.rtf | 19 ++--- inst/Makefile | 122 ++++++++++++++++++--------------- inst/NPInfo.plist | 12 +++- inst/Uninstall.tool | 6 +- inst/Welcome.rtf | 14 ++-- inst/distribution.xml | 36 ++++++++++ load/load.c | 2 +- mount/mount.c | 2 +- 14 files changed, 157 insertions(+), 91 deletions(-) create mode 100644 inst/DS_Store delete mode 100644 inst/InstallationCheck.strings create mode 100644 inst/distribution.xml diff --git a/Makefile b/Makefile index 8dd47fa..cd0ee3f 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ export MACOSX_DEPLOYMENT_TARGET=10.5 #export ARCHS=-arch i386 -arch x86_64 -arch ppc export SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk export WARNINGS=-Wall -Wmost -Wextra -Wno-missing-braces -Wno-private-extern -Werror -export CFLAGS=-g -isysroot $(SYSROOT) $(WARNINGS) -DNDEBUG +export CFLAGS=-g -isysroot $(SYSROOT) $(WARNINGS) #-DNDEBUG export LFLAGS=-g -isysroot $(SYSROOT) #export CC=llvm-gcc-4.2 export CC=clang diff --git a/README.md b/README.md index 78957b0..bf5a89e 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,21 @@ -# Mac9P # +# Mac9P 1.1 # **Mac9P** is a software that allows you to mount [9P](http://en.wikipedia.org/wiki/9P ) file systems on a Mac OS X system. ## Install ## -Install the **Mac9P.pkg** from the [Mac9P.dmg](https://bitbucket.org/fgb/mac9p/downloads/Mac9P.dmg). +Run **Install Mac9P** from the **Mac9P.dmg**. ## Uninstall ## -Run **Uninstall.tool** from the [Mac9P.dmg](https://bitbucket.org/fgb/mac9p/downloads/Mac9P.dmg). +Run **Uninstall.tool** from the **Mac9P.dmg**. ## Building ## ### Prerequisites ### * **Xcode**. -* **PackageMaker** to create the installer from [Auxiliary Tools for Xcode](https://developer.apple.com/downloads/index.action?name=PackageMaker). ### Compiling ### In a terminal run: ``` -#!sh - cd mac9 make all @@ -27,18 +24,27 @@ make all ## Mounting ## ### From the Finder ### +_(Broken if the binary is not signed) **Go** -> **Connect to Server...**: _9p://sources.cs.bell-labs.com_. ### From a Terminal ### ``` -#!sh - mkdir /tmp/sources -mount -t 9p sources.cs.bell-labs.com /tmp/sources +mount -t 9p -onoauth sources.cs.bell-labs.com /tmp/sources ``` ## Documentation ## -See **mount_9p(8)**. \ No newline at end of file +See **mount_9p(8)**. + +## Troubleshooting ## +### Disable kext signing check ### + +1. Boot into Recovery Mode by restarting your mac while holding down _Command+R_. +2. Open a Terminal from **Utilities** -> **Terminal** and run: +``` +csrutil disable +csrutil enable --without kext +``` diff --git a/inst/DS_Store b/inst/DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0cb5d730788afda5b1d128bc8e953f303c7c6d74 GIT binary patch literal 6148 zcmeHKy-yTD6n_IK2Pn62AYh?uh+;v=38IJvmjgqH8i!{fGnd^3L_%_n zm8BnO?LT0ly^Xc4jh41r+Tojz0}ixRV)kujes5>r@6GIQZf9-)fTY**R{$&kh+&af z*ND|`Og@+8h}D>ulZZs-5H5P(+>*zF@JMvj5GfETaNHEo-)^6~5tLl-;P;zMekL`w zbtg{N#~PHy8PL>7~RNPZKHyR4&&56 zKwX?=JTErVVvXm6tkpi{({+rVayXq~0dtwh!p)entkt=-)qj1k*S>l!x!r4T4Gs+T z+Wq}Q+uN~NSI@x6?ODF{?D>nAJFi~9(?Szmmz1>_tiXG82=uYsx_NK%M6X-PsG;Lk4xI0F+QU7g?sf%&CUlckUe z9?VcbK%94c-{D1?-dyq=mwJ;tEy7T&X05p5<^(qi&oT7nIJ-xFXjQsX^A+c^b}Z=D z4(lvSWf)~{tKnqL&hXDIGT7g=9 zYsvlp)}PP+)uiYyQXo>`zfyqIjb+Bt_)2DPJ@RsLueGr}#3D_`l{G2~R%Sa^j@*hn du_(i5wsa6v2Fn_;1ugm`pk#=uNP)kqz%LiG?KS`a literal 0 HcmV?d00001 diff --git a/inst/FSInfo.plist b/inst/FSInfo.plist index c1973eb..bed6862 100644 --- a/inst/FSInfo.plist +++ b/inst/FSInfo.plist @@ -1,5 +1,5 @@ - + CFBundleDevelopmentRegion @@ -13,7 +13,7 @@ CFBundlePackageType fs CFBundleVersion - 1.0 + 1.1 FSPersonalities 9p diff --git a/inst/InstallationCheck.strings b/inst/InstallationCheck.strings deleted file mode 100644 index 8c8f0c2..0000000 --- a/inst/InstallationCheck.strings +++ /dev/null @@ -1 +0,0 @@ -"16" = "There are 9P volumes currently in use. Unmount them and try again."; diff --git a/inst/KEInfo.plist b/inst/KEInfo.plist index d5f666d..ad658ed 100644 --- a/inst/KEInfo.plist +++ b/inst/KEInfo.plist @@ -15,7 +15,7 @@ CFBundlePackageType KEXT CFBundleVersion - 1.0 + 1.1 OSBundleLibraries com.apple.kpi.bsd diff --git a/inst/License.rtf b/inst/License.rtf index e37f659..77b6f10 100644 --- a/inst/License.rtf +++ b/inst/License.rtf @@ -1,31 +1,32 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1344\cocoasubrtf720 +{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf110 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} {\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}} {\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} \vieww17300\viewh9220\viewkind0 -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 \f0\b\fs24 \cf0 Mac9P \b0 is a package developed by Federico G. Benavento and is covered under the following BSD license:\ \ Copyright (c) 2015 by Federico G. Benavento.\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640 +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\partightenfactor0 \cf0 All rights reserved.\ \ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ -\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720 +\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\partightenfactor0 \ls1\ilvl0\cf0 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ {\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ {\listtext \'95 }Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640 +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\partightenfactor0 \cf0 \ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT OWNER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 \cf0 \ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640 +Available at: {\field{\*\fldinst{HYPERLINK "https://github.com/benavento/mac9p"}}{\fldrslt https://github.com/benavento/mac9p}}\ +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\partightenfactor0 \cf0 \ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 \cf0 Portions of this package were derived from u9fs which is distributed under the following license:\ \ The authors of this software are Bob Flandrena, Ken Thompson, Rob Pike, and Russ Cox.\ @@ -40,7 +41,7 @@ Available at: {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/u9fs/"}}{\f \ mntopts.h is distributed under the following license:\ \ -\pard\tx529\pardeftab529\pardirnatural +\pard\tx529\pardeftab529\pardirnatural\partightenfactor0 \cf0 \CocoaLigature0 This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License\ Version 2.0 (the 'License'). You may not use this file except in compliance with the License. Please obtain a copy of the License at {\field{\*\fldinst{HYPERLINK "http://www.opensource.apple.com/apsl/"}}{\fldrslt http://www.opensource.apple.com/apsl/}} and read it before using this file.\ \ diff --git a/inst/Makefile b/inst/Makefile index 4b86eca..45a1538 100644 --- a/inst/Makefile +++ b/inst/Makefile @@ -1,20 +1,14 @@ NAME=Mac9P -PKG=$(NAME).pkg +PKG=Install\ $(NAME).pkg DMG=$(NAME).dmg -PKGROOT=/tmp/$(NAME) -KEDIR=$(PKGROOT)/System/Library/Extensions/9p.kext -FSDIR=$(PKGROOT)/System/Library/FileSystems/9p.fs -NPDIR=$(PKGROOT)/System/Library/FileSystems/NetFSPlugins/9p.bundle +TMPDIR=/tmp/$(NAME) +PKGROOT=$(TMPDIR)/root +KEDIR=$(PKGROOT)/Library/Extensions/9p.kext +FSDIR=$(PKGROOT)/Library/FileSystems/9p.fs +NPDIR=$(PKGROOT)/Library/FileSystems/NetFSPlugins/9p.bundle MNDIR=$(PKGROOT)/usr/local/share/man/man8 -PKGRESDIR=$(PKG)/Contents/Resources -PKGRESFILES=\ - License.rtf\ - Welcome.rtf\ - InstallationCheck\ - InstallationCheck.strings\ -# background.tiff\ PKGDEP=\ ../kext/9p\ @@ -25,58 +19,78 @@ PKGDEP=\ FSInfo.plist\ KEInfo.plist\ NPInfo.plist\ - $(PKGRESFILES) + License.rtf\ + Welcome.rtf\ + InstallationCheck\ + distribution.xml\ +# background.tiff\ all: pkg dmg +PKGTMP=$(NAME).pkg.tmp $(PKG): $(PKGDEP) - mkdir -p $(KEDIR)/Contents - cp -pX KEInfo.plist $(KEDIR)/Contents/Info.plist - mkdir -p $(KEDIR)/Contents/MacOS - cp -pX ../kext/9p $(KEDIR)/Contents/MacOS/9p - chmod 644 $(KEDIR)/Contents/MacOS/9p - mkdir -p $(KEDIR)/Contents/Resources - cp -pX ../load/load_9p $(KEDIR)/Contents/Resources - mkdir -p $(FSDIR)/Contents - cp -pX FSInfo.plist $(FSDIR)/Contents/Info.plist - mkdir -p $(FSDIR)/Contents/Resources - cp -pX ../mount/mount_9p $(FSDIR)/Contents/Resources - mkdir -p $(NPDIR)/Contents - cp -pX NPInfo.plist $(NPDIR)/Contents/Info.plist - mkdir -p $(NPDIR)/Contents/MacOS - cp -pX ../plugin/9p $(NPDIR)/Contents/MacOS/9p - mkdir -p $(MNDIR) - cp -pX mount_9p.8 $(MNDIR) - sudo chown -R root:wheel $(PKGROOT) - sudo chmod u+s $(KEDIR)/Contents/Resources/load_9p - $(PACKAGEMAKER) \ - --root $(PKGROOT) \ - --id com.lab-fgb.9p \ - --domain system \ - --no-recommend \ - --root-volume-only \ - --out $@ - cp -pX $(PKGRESFILES) $(PKGRESDIR) - sudo rm -fr $(PKGROOT) + echo building $(PKG) + mkdir -p "$(KEDIR)/Contents" + cp -pX KEInfo.plist "$(KEDIR)/Contents/Info.plist" + mkdir -p "$(KEDIR)/Contents/MacOS" + cp -pX ../kext/9p "$(KEDIR)/Contents/MacOS/9p" + chmod 644 "$(KEDIR)/Contents/MacOS/9p" + mkdir -p "$(KEDIR)/Contents/Resources" + cp -pX ../load/load_9p "$(KEDIR)/Contents/Resources" + mkdir -p "$(FSDIR)/Contents" + cp -pX FSInfo.plist "$(FSDIR)/Contents/Info.plist" + mkdir -p "$(FSDIR)/Contents/Resources" + cp -pX ../mount/mount_9p "$(FSDIR)/Contents/Resources" + mkdir -p "$(NPDIR)/Contents" + cp -pX NPInfo.plist "$(NPDIR)/Contents/Info.plist" + mkdir -p "$(NPDIR)/Contents/MacOS" + cp -pX ../plugin/9p "$(NPDIR)/Contents/MacOS/9p" + mkdir -p "$(MNDIR)" + cp -pX mount_9p.8 "$(MNDIR)" + chmod u+s "$(KEDIR)/Contents/Resources/load_9p" + mkdir -p "$(TMPDIR)/Scripts" + cp -pX InstallationCheck "$(TMPDIR)/Scripts" + pkgbuild \ + --root "$(PKGROOT)" \ + --identifier com.lab-fgb.9p \ + --install-location "/" \ + --ownership recommended "$(PKGTMP)" + productbuild \ + --identifier com.lab-fgb.9p \ + --resources ./ \ + --scripts "$(TMPDIR)/Scripts" \ + --package-path "$(PKGTMP)" \ + --distribution distribution.xml \ + "$@" + rm -fr "$(PKGTMP)" "$(TMPDIR)" + +DMGFILES=\ + $(PKG)\ + License.rtf\ + Uninstall.tool\ + +DMGDEP=\ + $(DMGFILES)\ + DS_Store\ +# VolumeIcon.icns\ TDMG=tmp.dmg VOLUME=/Volumes/$(NAME) -$(DMG): $(PKG) #volume.icns - hdiutil create -quiet -layout NONE -size 512k -fs HFS+ -volname $(NAME) $(TDMG) - hdiutil attach -quiet -private -nobrowse $(TDMG) - cp -pRX $(PKG) $(VOLUME) -# cp -pX volume.icns $(VOLUME)/.VolumeIcon.icns -# /Developer/usr/bin/SetFile -a -C $(VOLUME) - ln -s $(VOLUME)/$(PKGRESDIR)/License.rtf $(VOLUME)/License.rtf - cp -pX Uninstall.tool $(VOLUME) -# cp -pX DS_Store $(VOLUME)/.DS_Store - hdiutil detach -quiet $(VOLUME) - hdiutil convert -quiet -format UDBZ $(TDMG) -o /tmp/$@ - mv -f /tmp/$@ $@ +$(DMG): $(DMGDEP) + hdiutil create -quiet -layout NONE -size 512k -fs HFS+ -volname "$(NAME)" "$(TDMG)" + hdiutil attach -quiet -private -nobrowse "$(TDMG)" + cp -pX $(DMGFILES) "$(VOLUME)" + # hide extension + SetFile -a E $(VOLUME)/$(PKG) $(VOLUME)/License.rtf +# cp -pX VolumeIcon.icns "$(VOLUME)/.VolumeIcon.icns" +# SetFile -a -C "$(VOLUME)" + cp -pX DS_Store "$(VOLUME)/.DS_Store" + hdiutil detach -quiet "$(VOLUME)" + hdiutil convert -quiet -format UDBZ "$(TDMG)" -o "$@" rm -f $(TDMG) clean: - rm -fr *.dmg *.pkg + rm -fr *.dmg *.pkg *.tmp dmg: $(DMG) pkg: $(PKG) diff --git a/inst/NPInfo.plist b/inst/NPInfo.plist index b84c6cd..6304101 100644 --- a/inst/NPInfo.plist +++ b/inst/NPInfo.plist @@ -17,11 +17,11 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 1.0 + 1.1 CFBundleSignature ???? CFBundleVersion - 1.0 + 1.1 CFPlugInDynamicRegisterFunction CFPlugInDynamicRegistration @@ -37,6 +37,14 @@ 6E571287-6305-4B5F-B21F-9D573AAA2828 + 4A866879-F34E-11D5-A6BF-003065A0E6DE + + 6E571287-6305-4B5F-B21F-9D573AAA2828 + + 4BE7B7CA-F34E-11D5-8D67-003065A0E6DE + + 6E571287-6305-4B5F-B21F-9D573AAA2828 + CFBundleURLTypes diff --git a/inst/Uninstall.tool b/inst/Uninstall.tool index a32f76d..b0c6384 100755 --- a/inst/Uninstall.tool +++ b/inst/Uninstall.tool @@ -4,9 +4,9 @@ export PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH" PKG=com.lab-fgb.9p KEXT=com.lab-fgb.kext.9p -KEDIR=/System/Library/Extensions/9p.kext -FSDIR=/System/Library/FileSystems/9p.fs -NPDIR=/System/Library/FileSystems/NetFSPlugins/9p.bundle +KEDIR=/Library/Extensions/9p.kext +FSDIR=/Library/FileSystems/9p.fs +NPDIR=/Library/FileSystems/NetFSPlugins/9p.bundle MAN=/usr/local/share/man/man8/mount_9p.8 DIRS="" diff --git a/inst/Welcome.rtf b/inst/Welcome.rtf index fd031f2..82731f9 100644 --- a/inst/Welcome.rtf +++ b/inst/Welcome.rtf @@ -1,19 +1,21 @@ -{\rtf1\ansi\ansicpg1252\cocoartf1344\cocoasubrtf720 +{\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf110 \cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} -\margl1440\margr1440\vieww9000\viewh8400\viewkind0 -\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qj +\margl1440\margr1440\vieww12040\viewh8580\viewkind0 +\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\qj\partightenfactor0 \f0\b\fs24 \cf0 Mac9P \b0 allows you to mount 9P based file systems on Mac OS X.\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 \cf0 \ For more information, please visit the \b Mac9P \b0 web site:\ \ -{\field{\*\fldinst{HYPERLINK "https://bitbucket.org/fgb/mac9p/"}}{\fldrslt https://bitbucket.org/fgb/mac9p/}}\ -\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural +{\field{\*\fldinst{HYPERLINK "https://github.com/benavento/mac9p"}}{\fldrslt https://github.com/benavento/mac9p}}\ +\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0 {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/mac9p"}}{\fldrslt \cf0 }}\ +\'97\ +Federico G. Benavento\ benavento@gmail.com\ } \ No newline at end of file diff --git a/inst/distribution.xml b/inst/distribution.xml new file mode 100644 index 0000000..b3ec27c --- /dev/null +++ b/inst/distribution.xml @@ -0,0 +1,36 @@ + + + + Mac9P.pkg.tmp + + + + + + + + + + + + + + + + + + + + diff --git a/load/load.c b/load/load.c index 1c3368a..5831c33 100644 --- a/load/load.c +++ b/load/load.c @@ -3,7 +3,7 @@ #include #include -static char *kext = "/System/Library/Extensions/9p.kext"; +static char *kext = "/Library/Extensions/9p.kext"; static char *cmd = "/sbin/kextload"; int diff --git a/mount/mount.c b/mount/mount.c index 57ed124..b3945e2 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -69,7 +69,7 @@ load9p(void) char *cmd; int i; - cmd = "/System/Library/Extensions/9p.kext/Contents/Resources/load_9p"; + cmd = "/Library/Extensions/9p.kext/Contents/Resources/load_9p"; pid = fork(); switch (pid) { case -1: