summaryrefslogtreecommitdiff
path: root/src/libnsss/nsss_all_endgrent.c
blob: 059eca4affede3f7f46711a61ea085080e193779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ISC license. */

#include <nsss/grp-unix.h>
#include <nsss/grp-switch.h>
#include <nsss/grp-all.h>
#include "nsss-all-internal.h"

void nsss_all_endgrent (void)
{
  if (nsss_all_errno) goto fallback ;
  nsss_switch_endgrent() ;
  return ;

 fallback:
  nsss_unix_endgrent() ;
  nsss_all_errno = 0 ;
}