Skip to content

Commit 697c90b

Browse files
committed
win,fs: We use SET_ACCESS now, not GRANT_ACCESS
So we must handle that appropriately in this helper function
1 parent 07cf05c commit 697c90b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/win/fs.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2282,14 +2282,14 @@ static void build_access_struct(EXPLICIT_ACCESS_W* ea, PSID owner,
22822282

22832283
if (mode_triplet & 0x1) {
22842284
ea->grfAccessPermissions |= STANDARD_RIGHTS_EXECUTE | FILE_READ_ATTRIBUTES | FILE_EXECUTE;
2285-
if (allow_deny == GRANT_ACCESS) {
2285+
if (allow_deny == SET_ACCESS) {
22862286
ea->grfAccessPermissions |= SYNCHRONIZE | FILE_WRITE_ATTRIBUTES;
22872287
}
22882288
}
22892289

22902290
if (mode_triplet & 0x2) {
22912291
ea->grfAccessPermissions |= STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA | FILE_WRITE_EA | FILE_APPEND_DATA | FILE_ADD_SUBDIRECTORY | FILE_DELETE_CHILD | DELETE;
2292-
if (allow_deny == GRANT_ACCESS) {
2292+
if (allow_deny == SET_ACCESS) {
22932293
ea->grfAccessPermissions |= SYNCHRONIZE | FILE_WRITE_ATTRIBUTES;
22942294
}
22952295
}

0 commit comments

Comments
 (0)