]> andersk Git - nss_nonlocal.git/commitdiff
initgroups_dyn: Succeed even if groups_nonlocal chain returned not found
authorAnders Kaseorg <andersk@mit.edu>
Tue, 11 Jun 2013 09:53:59 +0000 (05:53 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Thu, 13 Jun 2013 03:17:25 +0000 (23:17 -0400)
We’ve already added the magic groups at this point, so we need to
return success.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
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.10027 seconds and 5 git commands to generate.