aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
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) {