summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Lackner2019-01-04 19:52:17 +0100
committerrfjakob2019-01-04 20:11:45 +0100
commit117dc3f2cc83831a955838ac8ceaeb962b9c8827 (patch)
treefea60232b01e0e7496392cb5711edb61539ae361
parent2024616722ee18c3a8886490166d090f81f2ecaf (diff)
fusefrontend_reverse: Fix redeclaration of 'entries' variable.
Go version go1.10.7 linux/amd64 complains with: internal/fusefrontend_reverse/rfs.go:333: declaration of "entries" shadows declaration at internal/fusefrontend_reverse/rfs.go:327
-rw-r--r--internal/fusefrontend_reverse/rfs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go
index 69cedb1..ab10a04 100644
--- a/internal/fusefrontend_reverse/rfs.go
+++ b/internal/fusefrontend_reverse/rfs.go
@@ -330,7 +330,8 @@ func (rfs *ReverseFS) OpenDir(cipherPath string, context *fuse.Context) ([]fuse.
return nil, fuse.ToStatus(err)
}
if rfs.args.PlaintextNames {
- entries, status := rfs.openDirPlaintextnames(cipherPath, entries)
+ var status fuse.Status
+ entries, status = rfs.openDirPlaintextnames(cipherPath, entries)
if !status.Ok() {
return nil, status
}