From: Jeffrey Altman Date: Wed, 17 Mar 2004 04:17:20 +0000 (+0000) Subject: use-oldstyle-netbios-name-for-default-20040316 X-Git-Tag: openafs-devel-1_3_60~18 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7bb8cfd27fa67987872100cda07df2f4a2cff1f7;p=packages%2Fo%2Fopenafs.git 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\... --- 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;