aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2019-09-28 11:23:50 +0200
committerMatthias Andree <matthias.andree@gmx.de>2019-09-28 11:25:40 +0200
commitb27a75cd05b681bbdd95396b2874303d6fed4ae0 (patch)
tree26928d947a780e2ecbc8a3525dfeafdd8d8eb6a8 /lock.c
parent90f5c8459868840a591cb93fa88867705c0e7b24 (diff)
downloadfetchmail-b27a75cd05b681bbdd95396b2874303d6fed4ae0.tar.gz
fetchmail-b27a75cd05b681bbdd95396b2874303d6fed4ae0.tar.bz2
fetchmail-b27a75cd05b681bbdd95396b2874303d6fed4ae0.zip
6.4.1, regression fix for default file locations.
The fix between 6.4.0-rc4 and 6.4.0 for Debian Bug#941129 caused a regression in the default file locations, some files were looked for without dot (.fetchmail.pid, .fetchmailrc). Reported by Cy Schubert.
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lock.c b/lock.c
index 53846c83..7f8b8667 100644
--- a/lock.c
+++ b/lock.c
@@ -50,7 +50,7 @@ void fm_lock_setup(struct runctl *ctl)
+ strlen(FETCHMAIL_PIDFILE) + 3); /* 3: "/", "." and NUL */
strcpy(lockfile, fmhome);
strcat(lockfile, "/");
- if (fmhome == home)
+ if (at_home)
strcat(lockfile, ".");
strcat(lockfile, FETCHMAIL_PIDFILE);
}