diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-23 08:45:19 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-23 08:45:19 +0000 |
commit | 3845b5a8bd359297c37858b05ce962ff17ba0c37 (patch) | |
tree | 4476bec2681a81317ae225784812dd63adf3ef3e /fetchmail.c | |
parent | a3140279cc8c41a6d4cf169c3f6e94411fec4f95 (diff) | |
download | fetchmail-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.c | 7 |
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) { |