From b97268c94824b8047c8d4f97a68549260e4f6835 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 5 Jun 2016 11:33:54 +0200 Subject: 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). --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') 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) -- cgit v1.2.3