summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-06-19 20:01:04 +0200
committerJakob Unterwurzacher2016-06-19 20:01:04 +0200
commitf0b4d2354ddd481eed6c6b26046fe6b4e04e5d7e (patch)
tree603d06b23820a6eb0164ba21a369ecbcb741ecd9 /main.go
parent1dcafb99ff91e5389263d6c59b7179fd5abef0a5 (diff)
Refuse mounting of v0.6 and older filesystems
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.go b/main.go
index 6467b4b..6ed9271 100644
--- a/main.go
+++ b/main.go
@@ -122,10 +122,7 @@ func loadConfig(args *argContainer) (masterkey []byte, confFile *configfile.Conf
pw := readpassword.Once(args.extpass)
tlog.Info.Println("Decrypting master key")
masterkey, confFile, err = configfile.LoadConfFile(args.config, pw)
- if _, ok := err.(configfile.DeprecatedFsError); ok {
- // Force read-only mode
- args.ro = true
- } else if err != nil {
+ if err != nil {
tlog.Fatal.Println(err)
os.Exit(ERREXIT_LOADCONF)
}