aboutsummaryrefslogtreecommitdiff
path: root/init_dir.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-05-14 14:30:50 +0200
committerJakob Unterwurzacher2017-05-14 14:30:50 +0200
commitc44389d9422f31e0b462d1bcd47f80e95913cb60 (patch)
tree367e361b99e10a565674bfeb510602af60637920 /init_dir.go
parent2aea2d3d62e5df4c8bf25195dc97e60b495f6f12 (diff)
exitcodes: specific codes for failure to read or write gocryptfs.conf
New codes: * OpenConf = 23 * WriteConf = 24
Diffstat (limited to 'init_dir.go')
-rw-r--r--init_dir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/init_dir.go b/init_dir.go
index 65b25d1..20c9fd9 100644
--- a/init_dir.go
+++ b/init_dir.go
@@ -42,7 +42,7 @@ func initDir(args *argContainer) {
err = configfile.CreateConfFile(args.config, password, args.plaintextnames, args.scryptn, creator, args.aessiv)
if err != nil {
tlog.Fatal.Println(err)
- os.Exit(exitcodes.Init)
+ os.Exit(exitcodes.WriteConf)
}
// Forward mode with filename encryption enabled needs a gocryptfs.diriv
// in the root dir