From 3845b5a8bd359297c37858b05ce962ff17ba0c37 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 23 Dec 1996 08:45:19 +0000 Subject: Change lockfile location. svn path=/trunk/; revision=674 --- NEWS | 2 ++ fetchmail.c | 7 ++----- fetchmail.man | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index 784006a5..3cbb84ba 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,8 @@ bugs -- * Replaced bug-prone setvbuf with setlinebuf. +* Moved lock file to ~/.fetchmail to eliminate various /tmp problems. + ------------------------------------------------------------------------------ fetchmail-2.4 (Sat Dec 21 05:24:44 EST 1996) diff --git a/fetchmail.c b/fetchmail.c index 0a93eaa4..1a99c9de 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -155,11 +155,8 @@ int main (int argc, char **argv) implicitmode = load_params(argc, argv, optind); /* set up to do lock protocol */ - if ((tmpdir = getenv("TMPDIR")) == (char *)NULL) - tmpdir = "/tmp"; - strcpy(tmpbuf, tmpdir); - strcat(tmpbuf, "/fetchmail-"); - strcat(tmpbuf, user); + strcpy(tmpbuf, home); + strcat(tmpbuf, "/.fetchmail"); /* perhaps we just want to check options? */ if (versioninfo) { diff --git a/fetchmail.man b/fetchmail.man index d099c6e1..ce1b76b5 100644 --- a/fetchmail.man +++ b/fetchmail.man @@ -814,7 +814,7 @@ default location of file associating hosts with last message IDs seen (used only with newer RFC1725-compliant POP3 servers supporting the UIDL command). .TP 5 -${TMPDIR}/fetchmail-${USER} +$~/.fetchmail lock file to help prevent concurrent runs. .SH ENVIRONMENT For correct initialization, -- cgit v1.2.3