Signed-off-by: Alejandro Colomar <alx@kernel.org>
AC_DEFINE(WITH_LIBBSD, 1, [Build shadow with libbsd support])
else
AC_DEFINE(WITH_LIBBSD, 0, [Build shadow without libbsd support])
- AC_CHECK_FUNC(strlcpy, [], [AC_MSG_ERROR([strlcpy is required from glibc >= 2.38 or libbsd])])
fi
AM_CONDITIONAL(WITH_LIBBSD, test x$with_libbsd = xyes)
#ident "$Id$"
+#include "strtcpy.h"
#include "prototypes.h"
void
t = date;
if (date < 0) {
- (void) strlcpy(buf, "never", size);
+ (void) strtcpy(buf, "never", size);
return;
}
tm = gmtime(&t);
if (tm == NULL) {
- (void) strlcpy(buf, "future", size);
+ (void) strtcpy(buf, "future", size);
return;
}