From d7d0aaf8eb2f802f373a0b011bda6f23883c7c3a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 1 Jul 1997 20:16:01 +0000 Subject: Remove poprc compatibility hook. svn path=/trunk/; revision=1138 --- fetchmail.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 2af4dbdc..da007d00 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -133,20 +133,11 @@ int main (int argc, char **argv) } fetchmailhost = xstrdup(tmpbuf); - /* - * Backward-compatibility hack. If we're called by the name of the - * ancestral popclient, look for .poprc. This will actually work - * for popclient files that don't use the removed keywords. - */ - if (strcmp("popclient", argv[0]) == 0) - tmpdir = ".poprc"; - else - tmpdir = ".fetchmailrc"; - - rcfile = (char *) xmalloc(strlen(home)+strlen(tmpdir)+2); +#define RCFILE_NAME ".fetchmailrc" + rcfile = (char *) xmalloc(strlen(home)+strlen(RCFILE_NAME)+2); strcpy(rcfile, home); strcat(rcfile, "/"); - strcat(rcfile, tmpdir); + strcat(rcfile, RCFILE_NAME); #define IDFILE_NAME ".fetchids" idfile = (char *) xmalloc(strlen(home)+strlen(IDFILE_NAME)+2); -- cgit v1.2.3