/* Initialization Mutex */
if (!bInit) {
hInitMutex = CreateMutex(NULL, FALSE, NULL);
- SetEnvironmentVariable(DO_NOT_REGISTER_VARNAME, "");
}
break;
if (ISLOGONINTEGRATED(opt.LogonOption))
{
if ( KFW_is_available() ) {
+ SetEnvironmentVariable(DO_NOT_REGISTER_VARNAME, "");
code = KFW_AFS_get_cred(uname, cell, password, 0, opt.smbName, &reason);
+ SetEnvironmentVariable(DO_NOT_REGISTER_VARNAME, NULL);
DebugEvent("KFW_AFS_get_cred uname=[%s] smbname=[%s] cell=[%s] code=[%d]",
uname,opt.smbName,cell,code);
if (code == 0 && opt.theseCells) {
p = opt.theseCells;
while ( *p ) {
+ SetEnvironmentVariable(DO_NOT_REGISTER_VARNAME, "");
code2 = KFW_AFS_get_cred(principal, p, 0, 0, opt.smbName, &reason);
+ SetEnvironmentVariable(DO_NOT_REGISTER_VARNAME, NULL);
DebugEvent("KFW_AFS_get_cred uname=[%s] smbname=[%s] cell=[%s] code=[%d]",
principal,opt.smbName,p,code2);
p += strlen(p) + 1;