diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-01-13 07:31:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-01-13 07:31:25 +0000 |
commit | e765df08b2c8868d4bda6ef660b209c560e4eded (patch) | |
tree | c50c23f9d6d6697a55fddecc67baba1522567d88 /env.c | |
parent | 798868f26c1bd20798f4ffc1a011bed9d063de99 (diff) | |
download | fetchmail-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 */ |