diff options
author | Jakob Unterwurzacher | 2017-02-26 19:25:23 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-26 19:25:23 +0100 |
commit | 427c6c17193eda7fec77490175fbf7d8c86c3481 (patch) | |
tree | e8cca03fa6f28518d462dff785823d3141e66b14 /mount.go | |
parent | 57612a278bdd26de611b543be311748ca4dc42ca (diff) |
exitcodes: define code 12 for "password incorrect"
Diffstat (limited to 'mount.go')
-rw-r--r-- | mount.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |