aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2012-12-13 22:46:32 +0100
committerMatthias Andree <matthias.andree@gmx.de>2012-12-13 22:56:13 +0100
commitedb8384a00f108b385d0df7ddfa5bd671a36f946 (patch)
tree60b7973c73d1728f8307f7235f00990811aaab4d /fetchmail.c
parent27a72bbe4f5ffedd6de35dcfa12a3b78a9d669de (diff)
downloadfetchmail-edb8384a00f108b385d0df7ddfa5bd671a36f946.tar.gz
fetchmail-edb8384a00f108b385d0df7ddfa5bd671a36f946.tar.bz2
fetchmail-edb8384a00f108b385d0df7ddfa5bd671a36f946.zip
Repair --logfile regression of 6.3.23,
reported by Heinz Diehl.
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fetchmail.c b/fetchmail.c
index c02e4432..f7bcfd94 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -310,25 +310,27 @@ int main(int argc, char **argv)
if (run.logfile) {
/* nodetach -> turn off logfile option */
if (nodetach) {
- if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("The nodetach option is in effect, ignoring logfile option.\n")); }
+ if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("The nodetach option is in effect, ignoring logfile option.\n")); }
xfree(run.logfile);
}
+#if 0
/* not in daemon mode -> turn off logfile option */
if (0 == run.poll_interval) {
- if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("Not running in daemon mode, ignoring logfile option.\n")); }
+ if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("Not running in daemon mode, ignoring logfile option.\n")); }
xfree(run.logfile);
}
+#endif
/* log file not writable -> turn off logfile option */
if (run.logfile && 0 != access(run.logfile, F_OK)) {
- if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" does not exist, ignoring logfile option.\n"), run.logfile); }
+ if (outlevel >= O_NORMAL) { fprintf(stderr, GT_("Logfile \"%s\" does not exist, ignoring logfile option.\n"), run.logfile); }
xfree(run.logfile);
}
/* log file not writable -> turn off logfile option */
if (run.logfile && 0 != access(run.logfile, W_OK)) {
- if (outlevel >= O_DEBUG) { fprintf(stderr, GT_("Logfile \"%s\" is not writable, aborting.\n"), run.logfile); }
+ fprintf(stderr, GT_("Logfile \"%s\" is not writable, aborting.\n"), run.logfile);
xfree(run.logfile);
exit(PS_UNDEFINED);
}