aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend
diff options
context:
space:
mode:
Diffstat (limited to 'internal/fusefrontend')
-rw-r--r--internal/fusefrontend/names.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/fusefrontend/names.go b/internal/fusefrontend/names.go
index a6791cc..36185e2 100644
--- a/internal/fusefrontend/names.go
+++ b/internal/fusefrontend/names.go
@@ -65,6 +65,7 @@ func (fs *FS) openBackingDir(relPath string) (dirfd int, cName string, err error
for i, name := range parts {
iv, err := nametransform.ReadDirIVAt(dirfd)
if err != nil {
+ syscall.Close(dirfd)
return -1, "", err
}
cName = fs.nameTransform.EncryptAndHashName(name, iv)