- diff --git a/daemon/acl.c b/daemon/acl.c
- index 56d297a..0f13e7f 100644
- --- a/daemon/acl.c
- +++ b/daemon/acl.c
- @@ -860,12 +860,14 @@ void map_nfs4acemask2winaccessmask(uint32_t nfs4_mask,
- if (file_type == NF4DIR) {
- if (ACEMASK_TEST_MASK(nfs4_mask, ace4_all_dir_filt)) {
- *win_mask |= GENERIC_ALL;
- + nfs4_mask &= ~ace4_all_dir_filt;
- is_generic = true;
- }
- }
- else {
- if (ACEMASK_TEST_MASK(nfs4_mask, ace4_all_file_filt)) {
- *win_mask |= GENERIC_ALL;
- + nfs4_mask &= ~ace4_all_file_filt;
- is_generic = true;
- }
- }
- @@ -873,14 +875,17 @@ void map_nfs4acemask2winaccessmask(uint32_t nfs4_mask,
- if (!(*win_mask & GENERIC_ALL)) {
- if (ACEMASK_TEST_MASK(nfs4_mask, ace4_generic_read_filt)) {
- *win_mask |= GENERIC_READ;
- + nfs4_mask &= ~ace4_generic_read_filt;
- is_generic = true;
- }
- if (ACEMASK_TEST_MASK(nfs4_mask, ace4_generic_write_filt)) {
- *win_mask |= GENERIC_WRITE;
- + nfs4_mask &= ~ace4_generic_write_filt;
- is_generic = true;
- }
- if (ACEMASK_TEST_MASK(nfs4_mask, ace4_generic_execute_filt)) {
- *win_mask |= GENERIC_EXECUTE;
- + nfs4_mask &= ~ace4_generic_execute_filt;
- is_generic = true;
- }
- }
powershell GetAcl fix, but does not work with Linux nfsd
Posted by Anonymous on Wed 30th Jul 2025 18:37
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.