+2011-05-06 Ulrich Drepper <drepper@gmail.com>
+
+ * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
+ NSS_STATUS_NOTFOUND if no record was found.
+
2011-05-05 Andreas Schwab <schwab@redhat.com>
* sunrpc/Makefile (headers): Add rpc/netdb.h.
char *line = NULL;
size_t linelen = 0;
enum nss_status status = NSS_STATUS_SUCCESS;
+ bool any = false;
size_t buflen = 1024;
void *buffer = alloca (buflen);
groups[*start] = grp.gr_gid;
*start += 1;
+ any = true;
break;
}
fclose (stream);
- return status;
+ return status == NSS_STATUS_SUCCESS && !any ? NSS_STATUS_NOTFOUND : status;
}