From fdb1789145dbf7d5c1525c9e031fa8908af69654 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 4 Oct 1996 18:35:36 +0000 Subject: Allow no run control file. svn path=/trunk/; revision=216 --- NEWS | 4 +++- fetchmail.c | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 4e74ac31..57ed6f14 100644 --- a/NEWS +++ b/NEWS @@ -19,7 +19,7 @@ Inflict severe pain on the person(s) responsible for removing LAST from POP3. fetchmail-1.6 (): * Makefile fixes for correct linking on Sparcs and avoiding duplication of - the md5 files (leading to harmless instsll-time error messages). + the md5 files (leading to harmless install-time error messages). * Fix a bonehead coding error in pop3_delete() that was masked by the Intel register architecture. *blush* Thanks to Jay Anderson. @@ -29,6 +29,8 @@ fetchmail-1.6 (): * Fix bug that prevented SMTP from being specified on the defaults line. +* Allow program to run with no .fetchmailrc file again. + fetchmail-1.5 (Thu Oct 3 04:35:15 EDT 1996): * Naturally, my decision to announce 1.4 on comp.os.linux.announce diff --git a/fetchmail.c b/fetchmail.c index 0e228811..c068df0f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -161,7 +161,11 @@ char **argv; /* perhaps we just want to check options? */ if (versioninfo) { - printf("Taking options from command line and %s\n", rcfile); + printf("Taking options from command line"); + if (access(rcfile, 0)) + printf("\n"); + else + printf("and %s\n", rcfile); for (hostp = hostlist; hostp; hostp = hostp->next) { printf("Options for host %s:\n", hostp->servername); dump_params(hostp); -- cgit v1.2.3