summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-26 19:25:23 +0100
committerJakob Unterwurzacher2017-02-26 19:25:23 +0100
commit427c6c17193eda7fec77490175fbf7d8c86c3481 (patch)
treee8cca03fa6f28518d462dff785823d3141e66b14 /mount.go
parent57612a278bdd26de611b543be311748ca4dc42ca (diff)
exitcodes: define code 12 for "password incorrect"
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/mount.go b/mount.go
index 9e66a94..7845063 100644
--- a/mount.go
+++ b/mount.go
@@ -21,6 +21,7 @@ import (
"github.com/rfjakob/gocryptfs/internal/configfile"
"github.com/rfjakob/gocryptfs/internal/cryptocore"
"github.com/rfjakob/gocryptfs/internal/ctlsock"
+ "github.com/rfjakob/gocryptfs/internal/exitcodes"
"github.com/rfjakob/gocryptfs/internal/fusefrontend"
"github.com/rfjakob/gocryptfs/internal/fusefrontend_reverse"
"github.com/rfjakob/gocryptfs/internal/readpassword"
@@ -96,7 +97,7 @@ func doMount(args *argContainer) int {
// Close the socket file (which also deletes it)
args._ctlsockFd.Close()
}
- os.Exit(ErrExitLoadConf)
+ exitcodes.Exit(err)
}
readpassword.CheckTrailingGarbage()
printMasterKey(masterkey)