fusefrontend: Use appropriate flags in decryptPathAt.

This commit is contained in:
Sebastian Lackner 2019-01-03 17:54:38 +01:00 committed by rfjakob
parent c0640ff3ef
commit 0414ef2572
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (fs *FS) decryptPathAt(dirfd int, cipherPath string) (plainPath string, err
break
}
// Descend into next directory
wd, err = syscallcompat.Openat(wd, part, syscall.O_NOFOLLOW, 0)
wd, err = syscallcompat.Openat(wd, part, syscall.O_NOFOLLOW|syscall.O_DIRECTORY|syscallcompat.O_PATH, 0)
if err != nil {
return "", err
}