/* Copyright (c) 2011-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ipwd.h"
#include <unistd.h>
static void pw_init(void)
{
if (pwbuf_size < PWBUF_MIN_SIZE)
}
}
static void gr_init(void)
{
if (grbuf_size < PWBUF_MIN_SIZE)
}
}
void ipwd_deinit(void)
{
}
{
errno = 0;
do {
pw_init();
return 1;
/* FreeBSD fails here when name="user@domain" */
return 0;
}
return errno == 0 ? 0 : -1;
}
{
errno = 0;
do {
pw_init();
return 1;
return errno == 0 ? 0 : -1;
}
{
errno = 0;
do {
gr_init();
return 1;
return errno == 0 ? 0 : -1;
}
{
errno = 0;
do {
gr_init();
return 1;
return errno == 0 ? 0 : -1;
}