summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-06-05 11:33:54 +0200
committerJakob Unterwurzacher2016-06-05 11:40:13 +0200
commitb97268c94824b8047c8d4f97a68549260e4f6835 (patch)
tree72aa2b1d79ba3b5f7a52439beb605c8e5aa84422 /main.go
parenta602e798b1a65fdfe5e7f0260a34e17ea7ab0615 (diff)
configfile: bake the "Creator" gocryptfs version into the file
This field is added for the convenience of users and may help them to identify which gocryptfs version they need to mount a filesystem. The same information is essentially contained in FeatureFlags, but this is more difficult to decode for humans. It is completely ignored programmatically (also by older gocryptfs versions).
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index e365d48..ee3f591 100644
--- a/main.go
+++ b/main.go
@@ -72,7 +72,8 @@ func initDir(args *argContainer) {
toggledlog.Info.Printf("Using password provided via -extpass.")
}
password := readPasswordTwice(args.extpass)
- err = configfile.CreateConfFile(args.config, password, args.plaintextnames, args.scryptn)
+ creator := toggledlog.ProgramName + " " + GitVersion
+ err = configfile.CreateConfFile(args.config, password, args.plaintextnames, args.scryptn, creator)
if err != nil {
fmt.Println(err)
os.Exit(ERREXIT_INIT)