summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mount.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/mount.go b/mount.go
index 29d34b8..b9bdc40 100644
--- a/mount.go
+++ b/mount.go
@@ -178,7 +178,13 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF
ctlSockBackend = fs
}
if args.ctlsock != "" {
- ctlsock.CreateAndServe(args.ctlsock, ctlSockBackend)
+ err := ctlsock.CreateAndServe(args.ctlsock, ctlSockBackend)
+ if err != nil {
+ // TODO if the socket cannot be created, we should exit BEFORE
+ // asking the user for the password
+ tlog.Fatal.Printf("ctlsock: %v", err)
+ os.Exit(ErrExitMount)
+ }
}
pathFsOpts := &pathfs.PathNodeFsOptions{ClientInodes: true}
pathFs := pathfs.NewPathNodeFs(finalFs, pathFsOpts)