aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--env.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/env.c b/env.c
index 3b50d926..edf99898 100644
--- a/env.c
+++ b/env.c
@@ -107,6 +107,8 @@ void envquery(int argc, char **argv)
user = xstrdup(pwp->pw_name);
}
+ endpwent();
+
/* compute user's home directory */
home = getenv("HOME_ETC");
if (!home && !(home = getenv("HOME")))