From 5cd3d016fdbc6d14c6ac942b0b4e3e92a09755c5 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 18 Oct 2005 16:29:59 +0000 Subject: [PATCH] windows-error-codes-20051018 handle the CM_ERROR_ALLDOWN case when translating cm errors to nt status --- src/WINNT/afsd/smb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/smb.c b/src/WINNT/afsd/smb.c index 80bdaf4597..65c674b7b8 100644 --- a/src/WINNT/afsd/smb.c +++ b/src/WINNT/afsd/smb.c @@ -2452,7 +2452,7 @@ void smb_MapNTError(long code, unsigned long *NTStatusp) else if (code == CM_ERROR_ALLBUSY) { NTStatus = 0xC00000BFL; /* Network Busy */ } - else if (code == CM_ERROR_ALLOFFLINE) { + else if (code == CM_ERROR_ALLOFFLINE || code == CM_ERROR_ALLDOWN) { NTStatus = 0xC0000350L; /* Remote Host Down */ } #else @@ -2460,7 +2460,8 @@ void smb_MapNTError(long code, unsigned long *NTStatusp) * the AFS Client Service is busy or down. */ else if (code == CM_ERROR_ALLBUSY || - code == CM_ERROR_ALLOFFLINE) { + code == CM_ERROR_ALLOFFLINE || + code == CM_ERROR_ALLDOWN) { NTStatus = 0xC00000BEL; /* Bad Network Path */ } #endif