diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-09-04 13:59:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-09-04 13:59:02 +0000 |
commit | c8928081a5a9cbfaf16b14d4db57476bda8e1189 (patch) | |
tree | 2d7b495cd4352fd5facdeaeb500a394ba17b7714 /lock.c | |
parent | e588fb0f217d4ab7d1bfe8a1d292b8f556cefcb8 (diff) | |
download | fetchmail-c8928081a5a9cbfaf16b14d4db57476bda8e1189.tar.gz fetchmail-c8928081a5a9cbfaf16b14d4db57476bda8e1189.tar.bz2 fetchmail-c8928081a5a9cbfaf16b14d4db57476bda8e1189.zip |
Cygwin port fix.
svn path=/trunk/; revision=3692
Diffstat (limited to 'lock.c')
-rw-r--r-- | lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |