summaryrefslogtreecommitdiff
path: root/src/pwd/setpwent.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-14 16:28:00 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-14 16:28:00 -0400
commitfdf208af3d2fc6cb9732d670f16a87a5ff9f860b (patch)
treebae1849c122688b506c5e8cc5995504728bf0367 /src/pwd/setpwent.c
parent22f4c7005e9ca07a493f84eac2f529ec369649f3 (diff)
implement
Diffstat (limited to 'src/pwd/setpwent.c')
-rw-r--r--src/pwd/setpwent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pwd/setpwent.c b/src/pwd/setpwent.c
index ddee4014..0e52d9c0 100644
--- a/src/pwd/setpwent.c
+++ b/src/pwd/setpwent.c
@@ -1,7 +1,12 @@
#include <pwd.h>
+#include "_pwd.h"
+#include "stdio.h"
void setpwent(void)
{
+ if (__pwd.db != NULL) {
+ rewind(__pwd.db);
+ }
}
/*