From: Jeffrey Altman Date: Wed, 14 Dec 2005 05:33:46 +0000 (+0000) Subject: STABLE14-windows-rpc-warning-20051214 X-Git-Tag: openafs-stable-1_4_1-rc3~19 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f9c98f804ecf3e504dbaa9f6d56432de026ec872;p=packages%2Fo%2Fopenafs.git STABLE14-windows-rpc-warning-20051214 If osi_InitDebug() fails due to RPC_S_NO_PROTSEQS, log to the afsd_init.log file a warning indicating that the registry should be examined for a misconfiguration of Windows. (cherry picked from commit 8204b5968c0181e094f8369b94c5a4cf1a9de04a) --- diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 5f3c85625..821d0bbec 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -573,9 +573,12 @@ int afsd_InitCM(char **reasonP) code = osi_InitDebug(&debugID); afsi_log("osi_InitDebug code %d", code); - // osi_LockTypeSetDefault("stat"); /* comment this out for speed * + // osi_LockTypeSetDefault("stat"); /* comment this out for speed */ if (code != 0) { - *reasonP = "unknown error"; + if (code == RPC_S_NO_PROTSEQS) + *reasonP = "No RPC Protocol Sequences registered. Check HKLM\\SOFTWARE\\Microsoft\\RPC\\ClientProtocols"; + else + *reasonP = "unknown error"; return -1; }