]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-afsd-error-map-20090227
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 27 Feb 2009 07:26:49 +0000 (07:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 27 Feb 2009 07:26:49 +0000 (07:26 +0000)
LICENSE MIT

do not permit VNOSERVICE or VOFFLINE or VSALVAGE to leak and
be returned as an error code.  The resulting NTSTATUS is not valid.

(cherry picked from commit fbfaaf26890102dbe34315128183c27ce67f77a3)

src/WINNT/afsd/cm_utils.c

index 575f78decae908e8ad7a211958772404c3b0fd61..90c12d3a942089968adf712f38c8fc59eaceeddc 100644 (file)
@@ -270,6 +270,8 @@ long cm_MapRPCError(long error, cm_req_t *reqp)
         error = CM_ERROR_QUOTA;
     else if (error == VNOVNODE)
         error = CM_ERROR_BADFD;
+    else if (error == VNOSERVICE || error == VSALVAGE || error == VOFFLINE)
+        error = CM_ERROR_ALLOFFLINE;
     else if (error == EISDIR)
         return CM_ERROR_ISDIR;
     return error;