pastebin - collaborative debugging tool
rovema.kpaste.net RSS


nfs_mount: Document sec=sys and allow Windows-style /? help
Posted by Anonymous on Wed 4th Oct 2023 13:11
raw | new post

  1. From 91aaed7459a37332b59543c446e5d3f1a862c34c Mon Sep 17 00:00:00 2001
  2. From: Roland Mainz <roland.mainz@nrubsig.org>
  3. Date: Wed, 4 Oct 2023 13:24:45 +0200
  4. Subject: [PATCH] nfs_mount: Document sec=sys and allow Windows-style /? help
  5.  
  6. Update usage message for nfs_mount.exe (feedback by Joshua Hurst):
  7. - Document sec=sys
  8. - Print usage messsage for Windows-style /?, so that Windows admins
  9. have it a bit easier
  10.  
  11. Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
  12. ---
  13. mount/mount.c | 10 ++++++++--
  14.  1 file changed, 8 insertions(+), 2 deletions(-)
  15.  
  16. diff --git a/mount/mount.c b/mount/mount.c
  17. index f2d5650..ed30781 100644
  18. --- a/mount/mount.c
  19. +++ b/mount/mount.c
  20. @@ -65,7 +65,7 @@ static VOID PrintUsage(LPTSTR pProcess)
  21.          TEXT("\tport=#\tTCP port to use (defaults to 2049)\n")
  22.          TEXT("\trsize=#\tread buffer size in bytes\n")
  23.          TEXT("\twsize=#\twrite buffer size in bytes\n")
  24. -        TEXT("\tsec=krb5:krb5i:krb5p\tspecify gss security flavor\n")
  25. +        TEXT("\tsec=sys:krb5:krb5i:krb5p\tspecify (gss) security flavor\n")
  26.          TEXT("\twritethru\tturns off rdbss caching for writes\n")
  27.          TEXT("\tnocache\tturns off rdbss caching\n")
  28.          TEXT("\ttimeout=#\tspecify upcall timeout value in seconds (default 120s)\n")
  29. @@ -146,7 +146,13 @@ DWORD __cdecl _tmain(DWORD argc, LPTSTR argv[])
  30.                  _ftprintf(stderr, TEXT("Unrecognized option ")
  31.                      TEXT("'%s', disregarding.\n"), argv[i]);
  32.          }
  33. -        else if (pLocalName == NULL) /* drive letter */
  34. +        else if (_tcscmp(argv[i], TEXT("/?")) == 0)
  35. +       {
  36. +           /* Windows-style "nfs_mount /?" help */
  37. +            PrintUsage(argv[0]);
  38. +            goto out;
  39. +       }
  40. +       else if (pLocalName == NULL) /* drive letter */
  41.          {
  42.              pLocalName = argv[i];
  43.          }
  44. --
  45. 2.39.0

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