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:
parent
3bc100aeb3
commit
fba9b2b995
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user