Skip to content

Fix parent perms issues - #105

Merged
tschaub merged 3 commits into
tschaub:masterfrom
as3richa:fix-parent-perms
Jul 7, 2016
Merged

Fix parent perms issues#105
tschaub merged 3 commits into
tschaub:masterfrom
as3richa:fix-parent-perms

Conversation

@as3richa

Copy link
Copy Markdown

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

tschaub commented May 20, 2016

Copy link
Copy Markdown
Owner

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
Copy Markdown
Author

@tschaub Done

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

tschaub commented Jul 7, 2016

Copy link
Copy Markdown
Owner

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