From 7bb8cfd27fa67987872100cda07df2f4a2cff1f7 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 17 Mar 2004 04:17:20 +0000 Subject: [PATCH] use-oldstyle-netbios-name-for-default-20040316 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 | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/WINNT/afsd/lanahelper.cpp b/src/WINNT/afsd/lanahelper.cpp index d1725bccc..56dc4d126 100644 --- a/src/WINNT/afsd/lanahelper.cpp +++ b/src/WINNT/afsd/lanahelper.cpp @@ -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; -- 2.39.5