We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff63fb commit 9759885Copy full SHA for 9759885
src/win/fs.c
@@ -2359,7 +2359,7 @@ static void fs__chmod(uv_fs_t* req) {
2359
* We fix it by forcibly clearing some kind of cache by setting the security info with the
2360
* old DACL, then attempting to read it in again.
2361
*/
2362
- if (numOldEAs != pOldDACL->AceCount) {
+ if (pOldDACL != NULL && numOldEAs != pOldDACL->AceCount) {
2363
if (ERROR_SUCCESS != SetNamedSecurityInfoW(
2364
req->file.pathw,
2365
SE_FILE_OBJECT,
0 commit comments