diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-29 19:44:27 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-29 19:44:27 +0000 |
commit | 5d0ef5e37f24ae159d39b13358a297aab55b991e (patch) | |
tree | 5726e002e9a095c0ad742f9a24a2ed9e50ccda35 | |
parent | b0bbdc4481b82f0a45a7b0d930fb57ce21319602 (diff) | |
download | fetchmail-5d0ef5e37f24ae159d39b13358a297aab55b991e.tar.gz fetchmail-5d0ef5e37f24ae159d39b13358a297aab55b991e.tar.bz2 fetchmail-5d0ef5e37f24ae159d39b13358a297aab55b991e.zip |
More reorganization.
svn path=/trunk/; revision=425
-rw-r--r-- | fetchmail.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/fetchmail.c b/fetchmail.c index b8a8044f..905fa390 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -127,7 +127,9 @@ char **argv; if (versioninfo) printf("This is fetchmail release %s pl %s\n", RELEASE_ID, PATCHLEVEL); - load_params(argc, argv, optind); + /* avoid parsing the config file if all we're doing is killing a daemon */ + if (!quitmode) + load_params(argc, argv, optind); /* set up to do lock protocol */ if ((tmpdir = getenv("TMPDIR")) == (char *)NULL) @@ -136,12 +138,6 @@ char **argv; strcat(tmpbuf, "/fetchmail-"); strcat(tmpbuf, user); - /* initialize UID handling */ - if ((st = prc_filecheck(idfile)) != 0) - exit(st); - else - initialize_saved_lists(querylist, idfile); - /* perhaps we just want to check options? */ if (versioninfo) { printf("Taking options from command line"); @@ -305,7 +301,6 @@ char **argv; */ lossage = 0; do { - #ifdef HAVE_GETHOSTBYNAME sethostent(TRUE); /* use TCP/IP for mailserver queries */ #endif /* HAVE_GETHOSTBYNAME */ @@ -401,7 +396,7 @@ int argc; char **argv; int optind; { - int implicitmode; + int implicitmode, st; struct passwd *pw; struct query def_opts, *ctl, *mp; @@ -569,6 +564,12 @@ int optind; } } } + + /* initialize UID handling */ + if ((st = prc_filecheck(idfile)) != 0) + exit(st); + else + initialize_saved_lists(querylist, idfile); } void termhook(int sig) |