From fdf208af3d2fc6cb9732d670f16a87a5ff9f860b Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 14 Aug 2020 16:28:00 -0400 Subject: implement --- src/pwd/endpwent.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pwd/endpwent.c') diff --git a/src/pwd/endpwent.c b/src/pwd/endpwent.c index 73f2139c..df6af455 100644 --- a/src/pwd/endpwent.c +++ b/src/pwd/endpwent.c @@ -1,7 +1,13 @@ #include +#include "_pwd.h" +#include "stdio.h" void endpwent(void) { + if (__pwd.db != NULL) { + fclose(__pwd.db); + __pwd.db = NULL; + } } /* -- cgit v1.2.1