pastebin - collaborative debugging tool
rovema.kpaste.net RSS


msnfs42client: Test for Cygwin/SFU uid/gid in nfs3_attrs
Posted by Anonymous on Sat 7th Oct 2023 10:36
raw | new post
view followups (newest first): msnfs42client: Test for Cygwin/SFU uid/gid in nfs3_attrs by Anonymous

  1. # msnfs42client: Test for Cygwin/SFU uid/gid in nfs3_attrs
  2. diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c
  3. index 6a8061d..2bc730d 100644
  4. --- a/sys/nfs41_driver.c
  5. +++ b/sys/nfs41_driver.c
  6. @@ -4502,6 +4502,8 @@ void create_nfs3_attrs(
  7.      else
  8.          attrs->type = NF3REG;
  9.      attrs->mode = nfs41_fcb->mode;
  10. +    attrs->uid = 72488;
  11. +    attrs->gid = 21984;
  12.      attrs->nlink = nfs41_fcb->StandardInfo.NumberOfLinks;
  13.      attrs->size.QuadPart = attrs->used.QuadPart =
  14.          nfs41_fcb->StandardInfo.EndOfFile.QuadPart;
  15. # results in:
  16. # roland_mainz@winkrakra1 ~/work/kofemann_msnfs41/ms-nfs41-client
  17. # $ ls -l /cygdrive/h/tmp/a.exe
  18. # -rwxr-xr-x 1 Unix_User+72488 Unix_Group+21984 93684 Oct  4 07:27 /cygdrive/h/tmp/a.exe

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