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

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

void nsss_all_endpwent (void)
{
  if (nsss_all_errno) goto fallback ;
  nsss_switch_endpwent() ;
  return ;

 fallback:
  nsss_unix_endpwent() ;
  nsss_all_errno = 0 ;
}