aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell.c b/shell.c
index 8924642..05870c8 100644
--- a/shell.c
+++ b/shell.c
@@ -1684,7 +1684,9 @@ get_current_user_info ()
current_user.shell = savestring ("/bin/sh");
current_user.home_dir = savestring ("/");
}
+#if defined (HAVE_GETPWENT)
endpwent ();
+#endif
}
}