From: Silvia Gross Date: Mon, 23 Apr 2001 07:38:13 +0000 (+0000) Subject: STABLE10-drivemap-box-error-for-3-character-cellnames-20010423 X-Git-Tag: openafs-stable-1_0_4~63 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=57fa1ef123a302c78ddd1200747f2fd0de7fdc4f;p=packages%2Fo%2Fopenafs.git STABLE10-drivemap-box-error-for-3-character-cellnames-20010423 "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]);