summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-09-08 13:04:33 +0200
committerJakob Unterwurzacher2018-09-08 13:04:33 +0200
commitca24c206945266d6397aa0e7d136d5bdcbda777f (patch)
tree3b9cebc661bcb788d6af175d86d03dd9d8a22e18 /mount.go
parent2bdf7d5172d3540606f098030e8ede7a3ad1dfdd (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.go2
1 files changed, 1 insertions, 1 deletions
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)