From f9103441391f9a083d718ca0ef2724640e67d5c3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 27 Nov 1996 14:51:23 +0000 Subject: Added `logfile' keyword to rc syntax. svn path=/trunk/; revision=571 --- fetchmail.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fetchmail.c') 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); } -- cgit v1.2.3