diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-27 14:51:23 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-27 14:51:23 +0000 |
commit | f9103441391f9a083d718ca0ef2724640e67d5c3 (patch) | |
tree | cd1974f4175f9c4e087861b43c1411b441936c34 /fetchmail.c | |
parent | 570b125f6a2bf1e1e7eff3185afb01ca9f946549 (diff) | |
download | fetchmail-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.c | 5 |
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); } |