aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
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 2aa7a051..8b3f03f3 100644
--- a/lock.c
+++ b/lock.c
@@ -29,7 +29,7 @@ void lock_setup(void)
{
/* set up to do lock protocol */
#define FETCHMAIL_PIDFILE "fetchmail.pid"
- if (!getuid()) {
+ if (getuid() == ROOT_UID) {
lockfile = (char *)xmalloc(
sizeof(PID_DIR) + sizeof(FETCHMAIL_PIDFILE) + 1);
sprintf(lockfile, "%s/%s", PID_DIR, FETCHMAIL_PIDFILE);