From: Jeffrey Altman Date: Tue, 9 Mar 2004 03:06:32 +0000 (+0000) Subject: afscreds-unmap-command-line-option-20040308 X-Git-Tag: openafs-devel-1_3_60~57 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=91dac9e5b54925c2f410bd34b441fe8c44534f02;hp=5af850b9eefc20b6ae27ca1403917be0dc5294f9 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. --- diff --git a/src/WINNT/client_creds/main.cpp b/src/WINNT/client_creds/main.cpp index b55d593..f7a66b6 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 != ' '))