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 --- fetchmail.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'fetchmail.c') 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) { -- cgit v1.2.3