aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-23 08:45:19 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-23 08:45:19 +0000
commit3845b5a8bd359297c37858b05ce962ff17ba0c37 (patch)
tree4476bec2681a81317ae225784812dd63adf3ef3e /fetchmail.c
parenta3140279cc8c41a6d4cf169c3f6e94411fec4f95 (diff)
downloadfetchmail-3845b5a8bd359297c37858b05ce962ff17ba0c37.tar.gz
fetchmail-3845b5a8bd359297c37858b05ce962ff17ba0c37.tar.bz2
fetchmail-3845b5a8bd359297c37858b05ce962ff17ba0c37.zip
Change lockfile location.
svn path=/trunk/; revision=674
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c7
1 files changed, 2 insertions, 5 deletions
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) {