aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
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);
}