pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


powershell GetAcl fix, but does not work with Linux nfsd
Posted by Anonymous on Wed 30th Jul 2025 18:37
raw | new post

  1. diff --git a/daemon/acl.c b/daemon/acl.c                                                                                                                                                                                                                          
  2. index 56d297a..0f13e7f 100644                                                                                                                                                                                                                                      
  3. --- a/daemon/acl.c                                                                                                                                                                                                                                                
  4. +++ b/daemon/acl.c                                                                                                                                                                                                                                                
  5. @@ -860,12 +860,14 @@ void map_nfs4acemask2winaccessmask(uint32_t nfs4_mask,                                                                                                                                                                                      
  6.      if (file_type == NF4DIR) {                                                                                                                                                                                                                                    
  7.          if (ACEMASK_TEST_MASK(nfs4_mask, ace4_all_dir_filt)) {                                                                                                                                                                                                    
  8.              *win_mask |= GENERIC_ALL;
  9. +            nfs4_mask &= ~ace4_all_dir_filt;
  10.              is_generic = true;
  11.          }
  12.      }
  13.      else {
  14.          if (ACEMASK_TEST_MASK(nfs4_mask, ace4_all_file_filt)) {
  15.              *win_mask |= GENERIC_ALL;
  16. +            nfs4_mask &= ~ace4_all_file_filt;
  17.              is_generic = true;
  18.          }
  19.      }
  20. @@ -873,14 +875,17 @@ void map_nfs4acemask2winaccessmask(uint32_t nfs4_mask,
  21.      if (!(*win_mask & GENERIC_ALL)) {
  22.          if (ACEMASK_TEST_MASK(nfs4_mask, ace4_generic_read_filt)) {
  23.              *win_mask |= GENERIC_READ;
  24. +            nfs4_mask &= ~ace4_generic_read_filt;
  25.              is_generic = true;
  26.          }
  27.          if (ACEMASK_TEST_MASK(nfs4_mask, ace4_generic_write_filt)) {
  28.              *win_mask |= GENERIC_WRITE;
  29. +            nfs4_mask &= ~ace4_generic_write_filt;
  30.              is_generic = true;
  31.          }
  32.          if (ACEMASK_TEST_MASK(nfs4_mask, ace4_generic_execute_filt)) {
  33.              *win_mask |= GENERIC_EXECUTE;
  34. +            nfs4_mask &= ~ace4_generic_execute_filt;
  35.              is_generic = true;
  36.          }
  37.      }

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at