]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
drivemap-box-error-for-3-character-cellnames-20010329
authorSilvia Gross <silvia.gross@rzg.mpg.de>
Fri, 30 Mar 2001 00:18:55 +0000 (00:18 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 30 Mar 2001 00:18:55 +0000 (00:18 +0000)
"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."

src/WINNT/client_config/drivemap.cpp

index 0b08e8eae86b733c49c647ffbe4c7974d839d5f1..0acaed0a1e6d17a5a65221e63ea64fe1ab057643 100644 (file)
@@ -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]);