pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


set mask for newly created files to 0751
Posted by Anonymous on Mon 17th Jun 2024 11:47
raw | new post

  1. # set mask for newly created files to 0751
  2. diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c
  3. index 58a312c..fb8bf50 100644
  4. --- a/sys/nfs41_driver.c
  5. +++ b/sys/nfs41_driver.c
  6. @@ -3949,7 +3953,7 @@ NTSTATUS nfs41_Create(
  7.          entry->u.Open.open_owner_id = InterlockedIncrement(&open_owner_id);
  8.      // if we are creating a file check if nfsv3attributes were passed in
  9.      if (params->Disposition != FILE_OPEN && params->Disposition != FILE_OVERWRITE) {
  10. -        entry->u.Open.mode = 0777;
  11. +        entry->u.Open.mode = 0751;
  12.          if (ea && AnsiStrEq(&NfsV3Attributes, ea->EaName, ea->EaNameLength)) {
  13.              nfs3_attrs *attrs = (nfs3_attrs *)(ea->EaName + ea->EaNameLength + 1);
  14.  #ifdef DEBUG_OPEN

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