aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-01-20 13:42:29 +0100
committerJakob Unterwurzacher2018-01-20 13:42:29 +0100
commitbac7ef4834fc3d0536d10e9b2b8823d41235be0c (patch)
tree67e092c861dd4bed723100618693220ad24d04aa
parent277ad087ffdc59e352c2e554caedc7a7796bbd2d (diff)
MacOS: rely on OSXFuse to create the mountpoint
As reported in https://github.com/rfjakob/gocryptfs/issues/194 , OSXFuse creates the mountpoint if it does not exist.
-rw-r--r--mount.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mount.go b/mount.go
index 6ee7c36..8a23a52 100644
--- a/mount.go
+++ b/mount.go
@@ -58,8 +58,8 @@ func doMount(args *argContainer) int {
err = checkDir(args.mountpoint)
} else {
err = checkDirEmpty(args.mountpoint)
- // OSXFuse will create the mountpoint for us if it is below /Volumes/
- if runtime.GOOS == "darwin" && os.IsNotExist(err) && strings.HasPrefix(args.mountpoint, "/Volumes/") {
+ // OSXFuse will create the mountpoint for us ( https://github.com/rfjakob/gocryptfs/issues/194 )
+ if runtime.GOOS == "darwin" && os.IsNotExist(err) {
tlog.Info.Printf("Mountpoint %q does not exist, but should be created by OSXFuse",
args.mountpoint)
err = nil