aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-07-03 02:54:50 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-07-03 02:54:50 +0000
commit9aafb07f141bbd1cae1395e34fe3d064918c6712 (patch)
treeab8d0347fc4486ad4d84cd48182f56f7ac3f7a08 /fetchmail.c
parent1a9213a862e2b7c2b3e918d7700a82f014004b08 (diff)
downloadfetchmail-9aafb07f141bbd1cae1395e34fe3d064918c6712.tar.gz
fetchmail-9aafb07f141bbd1cae1395e34fe3d064918c6712.tar.bz2
fetchmail-9aafb07f141bbd1cae1395e34fe3d064918c6712.zip
poprcfile is now a single global.
svn path=/trunk/; revision=26
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c
index dc9d39cb..8918fe64 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -64,6 +64,8 @@ int poll_interval; /* polling interval for daemon mode */
char *logfile; /* logfile to ship progress reports to */
int quitmode; /* if -quit was set */
+char *poprcfile; /* path name of rc file */
+
/* args for the MDA, parsed out in the usual fashion by parseMDAargs() */
char *mda_argv [32];
@@ -105,7 +107,7 @@ char **argv;
if (cmd_opts.versioninfo)
showversioninfo();
- if (prc_parse_file(prc_getpathname(&cmd_opts,&def_opts)) != 0)
+ if (prc_parse_file(poprcfile) != 0)
exit(PS_SYNTAX);
if (optind >= argc)
@@ -129,14 +131,14 @@ char **argv;
/* perhaps we just want to check options? */
if (cmd_opts.versioninfo) {
- printf("Taking options from command line and %s\n", prc_pathname);
+ printf("Taking options from command line and %s\n", poprcfile);
for (hostp = hostlist; hostp; hostp = hostp->next) {
printf("Options for host %s:\n", hostp->servername);
dump_options(&hostp->options);
}
if (hostlist == NULL)
(void) printf("No mailservers set up -- perhaps %s is missing?\n",
- prc_pathname);
+ poprcfile);
exit(0);
}
else if (hostlist == NULL) {