summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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 57dbe05..2adf656 100644
--- a/main.go
+++ b/main.go
@@ -146,11 +146,13 @@ func main() {
os.Exit(ERREXIT_CIPHERDIR)
}
+ var plaintextNames bool
var cf *cryptfs.ConfFile
var currentPassword string
key := make([]byte, cryptfs.KEY_LEN)
if args.zerokey {
fmt.Printf("Zerokey mode active: using all-zero dummy master key.\n")
+ plaintextNames = args.plaintextnames
} else if len(args.masterkey) > 0 {
key = parseMasterKey(args.masterkey)
fmt.Printf("Using explicit master key.\n")
@@ -196,7 +198,6 @@ func main() {
os.Exit(0)
}
- var plaintextNames bool
if cf != nil {
plaintextNames = cf.PlaintextNames()
}