From c8928081a5a9cbfaf16b14d4db57476bda8e1189 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 4 Sep 2002 13:59:02 +0000 Subject: Cygwin port fix. svn path=/trunk/; revision=3692 --- lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lock.c') 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); -- cgit v1.2.3