Skip to content
New issue

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

Fix parent perms issues #105

Merged
merged 3 commits into from
Jul 7, 2016
Merged

Conversation

as3richa
Copy link

There are several cases WRT the permissions of parent directories where mock-fs doesn't accurately mirror a real filesystem's behaviour. This PR highlights and fixes a few of them, in mkdir and rmdir and their synchronous counterparts. I believe this was reported in #86 (but I didn't read that code in great detail).

I think there are more bugs along similar lines with other functions, but these came to my attention immediately because I encountered them in one of my own projects.

The first commit adds five new tests, four of which fail. The second commit fixes these tests.

@tschaub
Copy link
Owner

tschaub commented May 20, 2016

Thanks for the contribution @as3richa. Would you be able to update the tests so they pass on Windows as well? Currently, this just means conditionally running them if process.getuid && process.getgid (contributions or suggestions on how to improve this welcome).

@as3richa
Copy link
Author

@tschaub Done

@tschaub tschaub merged commit f6179b7 into tschaub:master Jul 7, 2016
@tschaub
Copy link
Owner

tschaub commented Jul 7, 2016

Thanks for the work on this @as3richa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants