From: Jeffrey Altman Date: Wed, 14 Dec 2005 05:32:55 +0000 (+0000) Subject: windows-rpc-warning-20051214 X-Git-Tag: openafs-devel-1_5_0~158 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8204b5968c0181e094f8369b94c5a4cf1a9de04a;p=packages%2Fo%2Fopenafs.git 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. --- diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index 56523dde4..7fee9f530 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; }