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.
This commit is contained in:
parent
277ad087ff
commit
bac7ef4834
4
mount.go
4
mount.go
@ -58,8 +58,8 @@ func doMount(args *argContainer) int {
|
|||||||
err = checkDir(args.mountpoint)
|
err = checkDir(args.mountpoint)
|
||||||
} else {
|
} else {
|
||||||
err = checkDirEmpty(args.mountpoint)
|
err = checkDirEmpty(args.mountpoint)
|
||||||
// OSXFuse will create the mountpoint for us if it is below /Volumes/
|
// OSXFuse will create the mountpoint for us ( https://github.com/rfjakob/gocryptfs/issues/194 )
|
||||||
if runtime.GOOS == "darwin" && os.IsNotExist(err) && strings.HasPrefix(args.mountpoint, "/Volumes/") {
|
if runtime.GOOS == "darwin" && os.IsNotExist(err) {
|
||||||
tlog.Info.Printf("Mountpoint %q does not exist, but should be created by OSXFuse",
|
tlog.Info.Printf("Mountpoint %q does not exist, but should be created by OSXFuse",
|
||||||
args.mountpoint)
|
args.mountpoint)
|
||||||
err = nil
|
err = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user