diff options
author | Jakob Unterwurzacher | 2018-09-08 13:04:33 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-09-08 13:04:33 +0200 |
commit | ca24c206945266d6397aa0e7d136d5bdcbda777f (patch) | |
tree | 3b9cebc661bcb788d6af175d86d03dd9d8a22e18 /mount.go | |
parent | 2bdf7d5172d3540606f098030e8ede7a3ad1dfdd (diff) |
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
Diffstat (limited to 'mount.go')
-rw-r--r-- | mount.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |