aboutsummaryrefslogtreecommitdiff
path: root/cryptfs
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs')
-rw-r--r--cryptfs/filter.go5
1 files changed, 3 insertions, 2 deletions
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