From f9c98f804ecf3e504dbaa9f6d56432de026ec872 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 14 Dec 2005 05:33:46 +0000 Subject: [PATCH] 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) --- src/WINNT/afsd/afsd_init.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.5