-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
fs: set path when mkdir recursive called on file #31607
Conversation
If folks are open to it, I would love to fast track this fix. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -1398,7 +1400,6 @@ int MKDirpAsync(uv_loop_t* loop, | |||
} | |||
// verify that the path pointed to is actually a directory. | |||
if (err == 0 && !S_ISDIR(req->statbuf.st_mode)) err = UV_EEXIST; | |||
uv_fs_req_cleanup(req); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were calling uv_fs_req_cleanup
prematurely on Windows systems, and freeing req->path
.
uv_fs_req_cleanup
is called in FSReqAfterScope::~FSReqAfterScope()
.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@richardlau mind if I land? |
Go for it 😀. |
PR-URL: #31607 Fixes: #28015 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Landed in 3f70d77 |
PR-URL: #31607 Fixes: #28015 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
PR-URL: #31607 Fixes: #28015 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
PR-URL: #31607 Fixes: #28015 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
PR-URL: #31607 Fixes: #28015 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Similar fix to #31505, we should bail early if mkdir recursive is called on a file path.
Fixes: #28015
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes