]> andersk Git - nss_nonlocal.git/blobdiff - nonlocal-group.c
initgroups_dyn: Succeed even if groups_nonlocal chain returned not found
[nss_nonlocal.git] / nonlocal-group.c
index 9bbe156183ccb6db5bc2e325eb2641e866a0d1d6..4c0a5b10469940631a343f6b01bb835d401eccf5 100644 (file)
@@ -450,7 +450,9 @@ _nss_nonlocal_initgroups_dyn(const char *user, gid_t group, long int *start,
 #define args (user, group, start, size, groupsp, limit, errnop)
 #include "walk_nss.h"
 #undef args
-    if (status != NSS_STATUS_SUCCESS)
+    if (status == NSS_STATUS_NOTFOUND || status == NSS_STATUS_UNAVAIL)
+       return NSS_STATUS_SUCCESS;
+    else if (status != NSS_STATUS_SUCCESS)
         return status;
 
     for (; in < *start; ++in) {
This page took 0.02373 seconds and 4 git commands to generate.