From 91dac9e5b54925c2f410bd34b441fe8c44534f02 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 9 Mar 2004 03:06:32 +0000 Subject: [PATCH] afscreds-unmap-command-line-option-20040308 Add -z option to afscreds.exe which is called from the installer to unmap the drive shares when uninstalling OpenAFS. --- src/WINNT/client_creds/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/WINNT/client_creds/main.cpp b/src/WINNT/client_creds/main.cpp index b55d593db..f7a66b687 100644 --- a/src/WINNT/client_creds/main.cpp +++ b/src/WINNT/client_creds/main.cpp @@ -106,14 +106,17 @@ BOOL InitApp (LPSTR pszCmdLineA) case 'A': fAutoInit = TRUE; break; + case 'm': case 'M': fRenewMaps = TRUE; break; + case 'n': case 'N': fNetDetect = TRUE; break; + case 's': case 'S': fShow = TRUE; @@ -138,14 +141,21 @@ BOOL InitApp (LPSTR pszCmdLineA) case 'U': fUninstall = TRUE; break; + case ':': MapShareName(pszCmdLineA); break; + + case 'z': + case 'Z': + DoUnMapShare(TRUE); + return(0); + case 'x': case 'X': TestAndDoMapShare(SERVICE_START_PENDING); TestAndDoMapShare(SERVICE_RUNNING); - return 0; + return 0; } while (*pszCmdLineA && (*pszCmdLineA != ' ')) -- 2.39.5