use-oldstyle-netbios-name-for-default-20040316
authorJeffrey Altman <jaltman@mit.edu>
Wed, 17 Mar 2004 04:17:20 +0000 (04:17 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 17 Mar 2004 04:17:20 +0000 (04:17 +0000)
For UNCC, allow old style netbios name to be the default for this
release to give them time to convert their scripts to use \\AFS\...
instead of \\%MACHINENAME%-AFS\...

src/WINNT/afsd/lanahelper.cpp

index d1725bc..56dc4d1 100644 (file)
@@ -518,14 +518,11 @@ extern "C" long lana_GetUncServerNameEx(char *buffer, lana_number_t * pLana, int
             regLana = nLana;
        }
 
-       if(regLana >=0 && lana_IsLoopback((lana_number_t) regLana)) {
-               if(regNbName[0]) {
-                       strncpy(nbName,regNbName,15);
-                       nbName[16] = 0;
-                       strupr(nbName);
-               }
-               else
-                       strcpy(nbName,"AFS");
+       if(rebNbName[0] &&
+       (regLana >=0 && lana_IsLoopback((lana_number_t) regLana))) {
+        strncpy(nbName,regNbName,15);
+        nbName[16] = 0;
+        strupr(nbName);
        } else {
                char * dot;