From: Silvia Gross Date: Fri, 30 Mar 2001 00:18:55 +0000 (+0000) Subject: drivemap-box-error-for-3-character-cellnames-20010329 X-Git-Tag: openafs-stable-1_1_0~245 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7ddc83dcdf1ee002a9dbef31b01cfc783c147256;p=packages%2Fo%2Fopenafs.git drivemap-box-error-for-3-character-cellnames-20010329 "In the original version the path name in the box showing the network drives were wrong if a part of the name after afs had only 3 characters: afs\ipp\u became afs\u. Also the small hooks in front of the names disappeared immediately." --- diff --git a/src/WINNT/client_config/drivemap.cpp b/src/WINNT/client_config/drivemap.cpp index 0b08e8eae..0acaed0a1 100644 --- a/src/WINNT/client_config/drivemap.cpp +++ b/src/WINNT/client_config/drivemap.cpp @@ -689,7 +689,7 @@ void AdjustAfsPath (LPTSTR pszTarget, LPCTSTR pszSource, BOOL fWantAFS, BOOL fWa (pszSource[4] == TEXT('\\')) || (lstrlen(pszSource) == 4))) wsprintf (pszTarget, TEXT("/afs%s"), pszSource); - else if (!fWantAFS && (!lstrncmpi (&pszSource[1], TEXT("afs"), 3) || ((pszSource[4] == TEXT('/')) || + else if (!fWantAFS && (!lstrncmpi (&pszSource[1], TEXT("afs"), 3) && ((pszSource[4] == TEXT('/')) || (pszSource[4] == TEXT('\\')) || (lstrlen(pszSource) == 4)))) lstrcpy (pszTarget, &pszSource[4]);