diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | fetchmail.c | 7 | ||||
-rw-r--r-- | fetchmail.man | 2 |
3 files changed, 5 insertions, 6 deletions
@@ -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, |