-
Notifications
You must be signed in to change notification settings - Fork 774
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
Unclosed file handle on futimes error #271
Comments
Unless anyone is working on this, I'll submit a PR. |
Would love this. Please include a test. Thanks! |
Will do. I think there might be a few different ways to test this, so once the PR is up, I'll welcome some feed back on the best approach. |
@jprichardson Question: Background: If we mocked the |
@hhamilto how do you feel about proxyquire? |
…ptors in the event of an error
…ptors in the event of an error
…ptors in the event of an error
@hhamilto How's that PR coming along? |
Sorry, didn't realize a PR was filed. |
No worries, I meant to put a ping on it a while back, to see if there is anything else that needs to be fixed before it gets merged. |
(Closes #271) lib/util/utimes: properly close file descriptors in the event of an error
The call to fs.close(fd) should be performed before the call to return in this function:
https://github.com/jprichardson/node-fs-extra/blob/master/lib/util/utimes.js#L53
The text was updated successfully, but these errors were encountered: