aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-04-12 08:54:28 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-04-12 08:54:28 +0200
commit145f7cb73021da462dcee6e8645130c4402afa3d (patch)
tree57f25a74dd1ff845b12e39370beb4f00c4989714
parenteec588b0b2d77eb2fe6d441efb6ab66ed538bedf (diff)
downloadfetchmail-145f7cb73021da462dcee6e8645130c4402afa3d.tar.gz
fetchmail-145f7cb73021da462dcee6e8645130c4402afa3d.tar.bz2
fetchmail-145f7cb73021da462dcee6e8645130c4402afa3d.zip
Call endpwent().
-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")))