From 427c6c17193eda7fec77490175fbf7d8c86c3481 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 26 Feb 2017 19:25:23 +0100 Subject: exitcodes: define code 12 for "password incorrect" --- mount.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mount.go') 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) -- cgit v1.2.3