summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-10-16 16:19:12 +0200
committerJakob Unterwurzacher2016-10-16 16:20:11 +0200
commit540f125f18d14f4aa55a2c88dfc3d17d8e7dcc1d (patch)
tree362e86c688fded1da0ad480aff1f506b4ac4a719 /mount.go
parent5144470e3d30499fa42af84927fa8adc27b51e68 (diff)
main: move masterkey warnings into parseMasterKey
This makes sure all callers of parseMasterKey warn the user. At the moment there is only one, but another one will be added soon for forcing a password change when only the master key is known.
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/mount.go b/mount.go
index 47dd192..c207bdd 100644
--- a/mount.go
+++ b/mount.go
@@ -53,11 +53,7 @@ func doMount(args *argContainer) int {
var confFile *configfile.ConfFile
if args.masterkey != "" {
// "-masterkey"
- tlog.Info.Printf("Using explicit master key.")
masterkey = parseMasterKey(args.masterkey)
- tlog.Info.Printf(tlog.ColorYellow +
- "THE MASTER KEY IS VISIBLE VIA \"ps ax\" AND MAY BE STORED IN YOUR SHELL HISTORY!\n" +
- "ONLY USE THIS MODE FOR EMERGENCIES." + tlog.ColorReset)
} else if args.zerokey {
// "-zerokey"
tlog.Info.Printf("Using all-zero dummy master key.")