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 --- fetchmail.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 93f4754a..78f3993f 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -492,7 +492,7 @@ int main(int argc, char **argv) * but ignore them otherwise so as not to interrupt a poll. */ signal(SIGUSR1, SIG_IGN); - if (run.poll_interval && !getuid()) + if (run.poll_interval && getuid() == ROOT_UID) signal(SIGHUP, SIG_IGN); } else @@ -732,7 +732,7 @@ int main(int argc, char **argv) * for people who think all system daemons wake up on SIGHUP. */ signal(SIGUSR1, donothing); - if (!getuid()) + if (getuid() != ROOT_UID) signal(SIGHUP, donothing); /* @@ -1187,7 +1187,7 @@ static int load_params(int argc, char **argv, int optind) */ if (!run.postmaster) { - if (getuid()) /* ordinary user */ + if (getuid() != ROOT_UID) /* ordinary user */ run.postmaster = user; else /* root */ run.postmaster = "postmaster"; -- cgit v1.2.3