From d95fc2333aa5c05de713694c0893c7690655a584 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 15 Nov 2015 13:38:19 +0100 Subject: Add "-extpass" cli option and associated tests --- cryptfs/filter.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cryptfs/filter.go') diff --git a/cryptfs/filter.go b/cryptfs/filter.go index 079b64f..f80889d 100644 --- a/cryptfs/filter.go +++ b/cryptfs/filter.go @@ -6,8 +6,9 @@ package cryptfs // when file names are not encrypted func (be *CryptFS) IsFiltered(path string) bool { // gocryptfs.conf in the root directory is forbidden - if be.plaintextNames == true && path == "gocryptfs.conf" { - Warn.Printf("The name \"/gocryptfs.conf\" is reserved when \"--plaintextnames\" is used\n") + if be.plaintextNames == true && path == ConfDefaultName { + Warn.Printf("The name /%s is reserved when -plaintextnames is used\n", + ConfDefaultName) return true } return false -- cgit v1.2.3