aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-27 14:51:23 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-27 14:51:23 +0000
commitf9103441391f9a083d718ca0ef2724640e67d5c3 (patch)
treecd1974f4175f9c4e087861b43c1411b441936c34 /fetchmail.c
parent570b125f6a2bf1e1e7eff3185afb01ca9f946549 (diff)
downloadfetchmail-f9103441391f9a083d718ca0ef2724640e67d5c3.tar.gz
fetchmail-f9103441391f9a083d718ca0ef2724640e67d5c3.tar.bz2
fetchmail-f9103441391f9a083d718ca0ef2724640e67d5c3.zip
Added `logfile' keyword to rc syntax.
svn path=/trunk/; revision=571
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index c5883ffc..0a464906 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -49,6 +49,7 @@ char *logfile; /* log file for daemon mode */
int quitmode; /* if --quit was set */
int check_only; /* if --probe was set */
int cmd_batchlimit; /* if --batchlimit was set */
+char *cmd_logfile; /* if --logfile was set */
/* miscellaneous global controls */
char *rcfile; /* path name of rc file */
@@ -594,6 +595,10 @@ static int load_params(int argc, char **argv, int optind)
if (cmd_batchlimit > -1)
batchlimit = cmd_batchlimit;
+ /* if cmd_logfile was explicitly set, use it to override logfile */
+ if (cmd_logfile)
+ logfile = cmd_logfile;
+
return(implicitmode);
}