Change some mappings of NIS+ errors to NSS error codes to avoid endless loops.
authordrepper <drepper>
Sun, 13 Dec 1998 11:02:26 +0000 (11:02 +0000)
committerdrepper <drepper>
Sun, 13 Dec 1998 11:02:26 +0000 (11:02 +0000)
nis/nss-nisplus.h

index ff497f1..f2247c7 100644 (file)
@@ -31,12 +31,12 @@ static enum nss_status niserr2nss_tab[] =
   [NIS_SUCCESS] = NSS_STATUS_SUCCESS,
   [NIS_S_SUCCESS] = NSS_STATUS_SUCCESS,
   [NIS_NOTFOUND] = NSS_STATUS_NOTFOUND,
-  [NIS_S_NOTFOUND] = NSS_STATUS_TRYAGAIN,
+  [NIS_S_NOTFOUND] = NSS_STATUS_NOTFOUND,
   [NIS_CACHEEXPIRED] = NSS_STATUS_UNAVAIL,
-  [NIS_NAMEUNREACHABLE] = NSS_STATUS_TRYAGAIN,
+  [NIS_NAMEUNREACHABLE] = NSS_STATUS_UNAVAIL,
   [NIS_UNKNOWNOBJ] = NSS_STATUS_NOTFOUND,
   [NIS_TRYAGAIN] = NSS_STATUS_TRYAGAIN,
-  [NIS_SYSTEMERROR] = NSS_STATUS_UNAVAIL,      /* Maybe TRYAGAIN ? */
+  [NIS_SYSTEMERROR] = NSS_STATUS_UNAVAIL,
   [NIS_CHAINBROKEN] = NSS_STATUS_UNAVAIL,
   [NIS_PERMISSION] = NSS_STATUS_UNAVAIL,
   [NIS_NOTOWNER] = NSS_STATUS_UNAVAIL,
@@ -74,7 +74,7 @@ static enum nss_status niserr2nss_tab[] =
   [NIS_SRVAUTH] = NSS_STATUS_UNAVAIL,
   [NIS_CLNTAUTH] = NSS_STATUS_UNAVAIL,
   [NIS_NOFILESPACE] = NSS_STATUS_UNAVAIL,
-  [NIS_NOPROC] = NSS_STATUS_TRYAGAIN,
+  [NIS_NOPROC] = NSS_STATUS_UNAVAIL,
   [NIS_DUMPLATER] = NSS_STATUS_UNAVAIL
 };
 #define NISERR_COUNT (sizeof (niserr2nss_tab) / sizeof (niserr2nss_tab[0]))