You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
POSIX open() supports an O_NOFOLLOW flag. If the file being opened is a symlink, open should fail with ELOOP. pyfakefs unconditionally follows symbolic links for open.
Thanks for the quick turnaround on all these issues! My own project very heavily tests and uses low-level filesystem functionality that is less commonly seen, hence the barrage of issues.
The text was updated successfully, but these errors were encountered:
That's ok, I appreciate that! It may take a bit until they all get resolved (my free time varies, and it takes longer for some issues), but this helps a lot.
A few years ago, we had somebody who used his own testing language to test pyfakefs, and he found a lot of mostly low-level issues (these are flagged with TSTL - there are 136 of them). This was very helpful too (though took also quite a bit of time to fix), and you are still far from that mark 😁
Describe the bug
POSIX
open()
supports anO_NOFOLLOW
flag. If the file being opened is a symlink,open
should fail withELOOP
.pyfakefs
unconditionally follows symbolic links foropen
.How To Reproduce
Your environment
Please run the following in the environment where the problem happened and
paste the output.
Thanks for the quick turnaround on all these issues! My own project very heavily tests and uses low-level filesystem functionality that is less commonly seen, hence the barrage of issues.
The text was updated successfully, but these errors were encountered: