Comments (3)
It incorrectly checks the read bit of the directory objects in _can_read, but it should be checking the execute bit
Right, that seems to be incorrect.
the permission fall-through behavior is not part of POSIX i.e. if get_uid() == st_uid, then only the S_IXUSR bit should be considered, and not the group/other bits
That's also true, I just checked this for the other issue where it also holds.
I actually forgot that there is already a check for uid and gid, so this looks just like a bug fix instead of a refactoring (which I first thought was needed).
from pyfakefs.
@vector-of-bool - this (and the other issue) shall be fixed now in main. Please try it out, and check if you see any other permission-related problems. I'll wait a bit if anything else comes up before making a new release.
from pyfakefs.
Thanks for the quick turnaround! I installed and ran tests on my system and it looks to be behaving properly.
It looks like it may have unveiled issues related to the automatic creation of a /tmp
directory, but will require more investigating.
from pyfakefs.
Related Issues (20)
- `PureWindowsPath.stem` changes behavior when `fs` fixture is loaded HOT 14
- `FileExistsError` raised when running test suite in parallel HOT 3
- additional_skip_names is ignored for Path().open HOT 2
- Python 3.13.0 beta 1 crashes HOT 4
- 5.5.0: `pyupgrade --py38-plus` generated patch cause pytest fails HOT 8
- Path.exists is not patched HOT 7
- additional_skip_names are not respected everywhere in pathlib HOT 4
- Patched `os.symlink` mishandles directory descriptors HOT 3
- Missing mock of `os.dup` HOT 4
- `os.getxattr` should raise `OSError(ENODATA)` for non-existent extended attributes HOT 1
- Patched `os.open` does not respect `O_NOFOLLOW` HOT 1
- Faked `os.link` is missing the `follow_symlinks` parameter HOT 1
- Fake `os.open` does not handle the `O_DIRECTORY` flag
- shutil.rmtree failing in OSType.WINDOWS with PermissionError HOT 2
- `os.open(O_DIRECTORY)` should raise `ENOENT` when the file does not exist
- Faked `os.makedirs` differs from the built-in `os.makedirs` and `mkdir -p` HOT 5
- Closing a duplicated fileno invalidates the previous file description
- Do not use scandir package HOT 16
- OSError opening same fd twice HOT 7
- `os.mkfifo` is not supported HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfakefs.