reverse: don't show gocryptfs.conf if a custom config path was passed

GetAttr checks for this, but OpenDir did not.

https://github.com/rfjakob/gocryptfs/issues/385
This commit is contained in:
Jakob Unterwurzacher 2019-03-26 20:59:52 +01:00
parent 3bc100aeb3
commit fba9b2b995
1 changed files with 2 additions and 1 deletions

View File

@ -379,7 +379,8 @@ func (rfs *ReverseFS) OpenDir(cipherPath string, context *fuse.Context) ([]fuse.
for i := range entries {
var cName string
// ".gocryptfs.reverse.conf" in the root directory is mapped to "gocryptfs.conf"
if cipherPath == "" && entries[i].Name == configfile.ConfReverseName {
if cipherPath == "" && entries[i].Name == configfile.ConfReverseName &&
!rfs.args.ConfigCustom {
cName = configfile.ConfDefaultName
} else {
cName = rfs.nameTransform.EncryptName(entries[i].Name, dirIV)