aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-01-13 07:31:25 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-01-13 07:31:25 +0000
commite765df08b2c8868d4bda6ef660b209c560e4eded (patch)
treec50c23f9d6d6697a55fddecc67baba1522567d88 /env.c
parent798868f26c1bd20798f4ffc1a011bed9d063de99 (diff)
downloadfetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.tar.gz
fetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.tar.bz2
fetchmail-e765df08b2c8868d4bda6ef660b209c560e4eded.zip
Sunil Shetye's fix for SSL configuration.
svn path=/trunk/; revision=3875
Diffstat (limited to 'env.c')
-rw-r--r--env.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/env.c b/env.c
index 8fe2103d..d578f0c6 100644
--- a/env.c
+++ b/env.c
@@ -23,12 +23,10 @@
#include <netdb.h>
#endif /* HAVE_GETHOSTBYNAME */
#include <sys/types.h>
-#include <time.h>
#include "fetchmail.h"
#include "i18n.h"
#if defined(HAVE_SETLOCALE) && defined(ENABLE_NLS) && defined(HAVE_STRFTIME)
-#include <time.h>
#include <locale.h>
#endif
@@ -107,7 +105,8 @@ void envquery(int argc, char **argv)
}
/* compute user's home directory */
- if (!(home = getenv("HOME")))
+ home = getenv("HOME_ETC");
+ if (!home && !(home = getenv("HOME")))
home = pwp->pw_dir;
/* compute fetchmail's home directory */