pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Fix for nfs://host/foo/bar/////baz
Posted by Anonymous on Wed 14th Feb 2024 14:53
raw | new post

  1. diff --git a/dll/nfs41_np.c b/dll/nfs41_np.c
  2. index 60d6c1d..cb392a0 100644
  3. --- a/dll/nfs41_np.c
  4. +++ b/dll/nfs41_np.c
  5. @@ -525,6 +525,21 @@ NPAddConnection3(
  6.      }
  7.  #endif
  8.  
  9. +#if 1
  10. +    /* Fold repeated backslash into a single backslash */
  11. +    {
  12. +        wchar_t *q, *u;
  13. +        q = u = &p[i];
  14. +        
  15. +        while(*q != L'\0') {
  16. +            while((*q == '\\') && (*(q+1) == '\\'))
  17. +                q++;
  18. +            *u++ = *q++;
  19. +        }
  20. +        *u = L'\0';
  21. +    }
  22. +#endif
  23. +
  24.  #ifdef NFS41_DRIVER_MOUNT_DOES_NFS4_PREFIX
  25.      if (wcsncmp(&p[i], L"\\nfs4", 5) != 0) {
  26.          DbgP(( L"Connection name '%s' not prefixed with '\\nfs41'\n", &p[i]));

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