diff options
author | Jakob Unterwurzacher | 2016-12-10 12:49:43 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-12-10 12:49:43 +0100 |
commit | 21904cd5f03f853ea6ceccbb414a5070c1f96324 (patch) | |
tree | 09d242233e1e95ccda2d624595056e9c6b31c16f /mount.go | |
parent | 3e5904114795ddb6863c6c46f366ac36c83d1c04 (diff) |
ctlsock: exit if socket cannot be created
Diffstat (limited to 'mount.go')
-rw-r--r-- | mount.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |