We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to reproduce:
mkdir local remote gocryptfs -init -plaintextnames -reverse local touch local/abcd gocryptfs -reverse -exclude abcd local remote
In this example, the file abcd should not appear in any directory listing - however, it still appears (but without being able to access it):
abcd
drwxr-xr-x 2 sebastian sebastian 4,0K Dez 17 14:48 . drwxr-xr-x 7 sebastian sebastian 4,0K Dez 17 14:45 .. -????????? ? ? ? ? ? abcd -r-------- 1 sebastian sebastian 366 Dez 17 14:45 gocryptfs.conf
The problem seems to be that exclude handling was never implemented in openDirPlaintextnames, which is used as shortcut when using plaintext names:
openDirPlaintextnames
[...] if rfs.args.PlaintextNames { return rfs.openDirPlaintextnames(cipherPath, entries) } [...]
The text was updated successfully, but these errors were encountered:
Hmm, this means the tests in https://github.com/rfjakob/gocryptfs/blob/master/tests/reverse/exclude_test.go are broken
Sorry, something went wrong.
And they are. The tests used ioutil.ReadDir, which tries to stat all files and filters out those it cannot.
tests: fix VerifyExistence() helper, it missed unstat()able files
a2f83ac
VerifyExistence missed unstat()able files in the directory listing because ioutil.ReadDir() filtered them out. #285
75a3e2c
Fixed the tests and fixed the bug, thanks
No branches or pull requests
Steps to reproduce:
In this example, the file
abcd
should not appear in any directory listing - however, it still appears (but without being able to access it):The problem seems to be that exclude handling was never implemented in
openDirPlaintextnames
, which is used as shortcut when using plaintext names:The text was updated successfully, but these errors were encountered: