From ca24c206945266d6397aa0e7d136d5bdcbda777f Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 8 Sep 2018 13:04:33 +0200 Subject: main: don't read the config file twice (fix pipe bug) Instead, first Load() the file, then DecryptMasterKey(). Fixes https://github.com/rfjakob/gocryptfs/issues/258 --- mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mount.go') diff --git a/mount.go b/mount.go index e9714d4..d050c60 100644 --- a/mount.go +++ b/mount.go @@ -94,7 +94,7 @@ func doMount(args *argContainer) { } // We cannot use JSON for pretty-printing as the fields are unexported tlog.Debug.Printf("cli args: %#v", args) - // Initialize gocryptfs + // Initialize gocryptfs (read config file, ask for password, ...) fs, wipeKeys := initFuseFrontend(args) // Initialize go-fuse FUSE server srv := initGoFuse(fs, args) -- cgit v1.2.3