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)
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;
}