summaryrefslogtreecommitdiff
path: root/src/libnsss/nsss_unix_maybe_start.c
blob: 9aad8d46b548050e07078cd8a0ac89dccc4ab3e3 (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include <skalibs/buffer.h>
#include <nsss/nsss-unix.h>

int nsss_unix_maybe_start (nsss_unix_t *a, char const *path)
{
  return buffer_fd(&a->b) >= 0 || nsss_unix_start(a, path) ;
}